mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix a precedence bug in the atapi tape driver. I think it could either
write a filemark where it wasn't needed, or neglect to write one at all, depending on how the boolean converted to an int value for the &.
This commit is contained in:
parent
d5558c001a
commit
03a4d0108f
2 changed files with 4 additions and 4 deletions
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wst.c,v 1.18 1999/05/02 21:46:31 peter Exp $
|
||||
* $Id: wst.c,v 1.19 1999/05/06 18:44:10 peter Exp $
|
||||
*/
|
||||
|
||||
#include "wdc.h"
|
||||
|
|
@ -373,7 +373,7 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p)
|
|||
wst_write_filemark(t, 0);
|
||||
|
||||
/* Write filemark if data written to tape */
|
||||
if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN)
|
||||
if ((t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN)) == WST_DATA_WRITTEN)
|
||||
wst_write_filemark(t, WEOF_WRITE_MASK);
|
||||
|
||||
/* If minor is even rewind on close */
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wst.c,v 1.18 1999/05/02 21:46:31 peter Exp $
|
||||
* $Id: wst.c,v 1.19 1999/05/06 18:44:10 peter Exp $
|
||||
*/
|
||||
|
||||
#include "wdc.h"
|
||||
|
|
@ -373,7 +373,7 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p)
|
|||
wst_write_filemark(t, 0);
|
||||
|
||||
/* Write filemark if data written to tape */
|
||||
if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN)
|
||||
if ((t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN)) == WST_DATA_WRITTEN)
|
||||
wst_write_filemark(t, WEOF_WRITE_MASK);
|
||||
|
||||
/* If minor is even rewind on close */
|
||||
|
|
|
|||
Loading…
Reference in a new issue