git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5bd2e7
)
Using a bool with a logical operation. IBM checker caught.
author
Jeremy Allison
<jra@samba.org>
Sat, 5 Jan 2008 07:17:38 +0000
(23:17 -0800)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index e3fae02b83291d6892380cf7cbef87e82dd7df2d..f178102fdd7f93c130435a2e4d383615825371d0 100644
(file)
--- 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;
}