Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_udf Fix accidental use of logical && instead of b...
details: https://anonhg.NetBSD.org/src/rev/d29c2f2a3d76
branches: trunk
changeset: 765424:d29c2f2a3d76
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu May 26 07:59:08 2011 +0000
description:
Fix accidental use of logical && instead of binary & in rare case.
Bug noticed by Joerg and clang :)
diffstat:
sbin/newfs_udf/newfs_udf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 73d26ab2a792 -r d29c2f2a3d76 sbin/newfs_udf/newfs_udf.c
--- a/sbin/newfs_udf/newfs_udf.c Thu May 26 04:51:57 2011 +0000
+++ b/sbin/newfs_udf/newfs_udf.c Thu May 26 07:59:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: newfs_udf.c,v 1.11 2011/01/21 22:32:13 reinoud Exp $ */
+/* $NetBSD: newfs_udf.c,v 1.12 2011/05/26 07:59:08 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -581,7 +581,7 @@
(void)printf("\tunrecognised enable/disable req.\n");
return EIO;
}
- if ((format_flags && FORMAT_VAT) && UDF_512_TRACK)
+ if ((format_flags & FORMAT_VAT) & UDF_512_TRACK)
format_flags |= FORMAT_TRACK512;
/* determine partition/media access type */
Home |
Main Index |
Thread Index |
Old Index