summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-25 16:25:22 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-25 17:01:52 +1100
commit3cdd888093e57a8cfc29d82ea47c8887a50e73a4 (patch)
tree5223b6ab907075a12e14b68d351943fed6330cc6 /source3
parent9dbb64563c35003311d3f3d47e6c4ef0f546ffab (diff)
downloadsamba-3cdd888093e57a8cfc29d82ea47c8887a50e73a4.tar.gz
samba-3cdd888093e57a8cfc29d82ea47c8887a50e73a4.tar.bz2
samba-3cdd888093e57a8cfc29d82ea47c8887a50e73a4.zip
pysmbd: Fix pysmbd octal mode handling
It is clearly too long since Computer Science 101... ;-) Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/pysmbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c
index 66aba21fa8..5e2daa1f71 100644
--- 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) >> 16;
- 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);