Using a bool with a logical operation. IBM checker caught.
authorJeremy Allison <jra@samba.org>
Sat, 5 Jan 2008 07:17:38 +0000 (23:17 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 5 Jan 2008 07:17:38 +0000 (23:17 -0800)
Jeremy.
(This used to be commit 7f9fe7da1e25bcc730f4c4226bf77f6d39b5ace4)

source3/smbd/open.c

index e3fae02b83291d6892380cf7cbef87e82dd7df2d..f178102fdd7f93c130435a2e4d383615825371d0 100644 (file)
@@ -1405,7 +1405,7 @@ NTSTATUS open_file_ntcreate(connection_struct *conn,
        }
 #endif /* O_SYNC */
   
-       if (posix_open & (access_mask & FILE_APPEND_DATA)) {
+       if (posix_open && (access_mask & FILE_APPEND_DATA)) {
                flags2 |= O_APPEND;
        }