diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-04 23:17:38 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-04 23:17:38 -0800 |
commit | c6a2292724036340f766d774e64d6738d702478d (patch) | |
tree | 5a1aa2927f574a4513c69d3a6872afdd729f46b2 /source3 | |
parent | d5bd2e7000592b8256b837415c40e20f319fb07b (diff) | |
download | samba-c6a2292724036340f766d774e64d6738d702478d.tar.gz samba-c6a2292724036340f766d774e64d6738d702478d.tar.bz2 samba-c6a2292724036340f766d774e64d6738d702478d.zip |
Using a bool with a logical operation. IBM checker caught.
Jeremy.
(This used to be commit 7f9fe7da1e25bcc730f4c4226bf77f6d39b5ace4)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index e3fae02b83..f178102fdd 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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; } |