git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbb645
)
pysmbd: Fix pysmbd octal mode handling
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 25 Oct 2012 05:25:22 +0000
(16:25 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 25 Oct 2012 06:01:52 +0000
(17:01 +1100)
It is clearly too long since Computer Science 101... ;-)
Andrew Bartlett
source3/smbd/pysmbd.c
patch
|
blob
|
history
diff --git
a/source3/smbd/pysmbd.c
b/source3/smbd/pysmbd.c
index 66aba21fa816a109831a4a13d24f7f161f7333ac..5e2daa1f719644130776dbec10a050acf5d9e486 100644
(file)
--- a/
source3/smbd/pysmbd.c
+++ b/
source3/smbd/pysmbd.c
@@
-158,8
+158,8
@@
static SMB_ACL_T make_simple_acl(gid_t gid, mode_t chmod_mode)
mode_t mode = SMB_ACL_READ|SMB_ACL_WRITE;
- mode_t mode_user = (chmod_mode & 0700) >>
1
6;
- mode_t mode_group = (chmod_mode & 070) >>
8
;
+ mode_t mode_user = (chmod_mode & 0700) >> 6;
+ mode_t mode_group = (chmod_mode & 070) >>
3
;
mode_t mode_other = chmod_mode & 07;
SMB_ACL_ENTRY_T entry;
SMB_ACL_T acl = sys_acl_init(frame);