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:
6a141b7
)
Missed parentheses around complex logic.
author
Jeremy Allison
<jra@samba.org>
Fri, 7 Mar 2003 19:46:51 +0000
(19:46 +0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 7 Mar 2003 19:46:51 +0000
(19:46 +0000)
Jeremy.
(This used to be commit
e81427c2d69be166afad94bc083e750e8f48fba7
)
source3/smbd/posix_acls.c
patch
|
blob
|
history
diff --git
a/source3/smbd/posix_acls.c
b/source3/smbd/posix_acls.c
index 2aea3a2c902c5804d4be47695b0a3a2ff3e539c9..01e3c31ba78b63dd560b981945041a2ad45b7181 100644
(file)
--- a/
source3/smbd/posix_acls.c
+++ b/
source3/smbd/posix_acls.c
@@
-2593,7
+2593,8
@@
BOOL set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd)
* Do we need to chown ?
*/
- need_chown = (user != (uid_t)-1 && orig_uid != user || grp != (uid_t)-1 && orig_gid != grp);
+ if (((user != (uid_t)-1) && (orig_uid != user)) || (( grp != (uid_t)-1) && (orig_gid != grp)))
+ need_chown = True;
/*
* Chown before setting ACL only if we don't change the user, or