diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-24 19:56:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:49 -0500 |
commit | 25a685b71ad4e6584b41641fcbee1a972714a27a (patch) | |
tree | 0d68ce553131bbe7efc5399f5fef5fe9697d4613 /source3 | |
parent | 0d1e4dc5b01323282d24c61da78add5030cf545c (diff) | |
download | samba-25a685b71ad4e6584b41641fcbee1a972714a27a.tar.gz samba-25a685b71ad4e6584b41641fcbee1a972714a27a.tar.bz2 samba-25a685b71ad4e6584b41641fcbee1a972714a27a.zip |
r17804: Fix a enum/int mixup found by the IRIX compiler.
Volker
(This used to be commit 3a1cf623765cd8b6615ad317d25cebc379c762a2)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/smb_acls.h | 1 | ||||
-rw-r--r-- | source3/lib/sysacls.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h index 01ab268a05..0d2cbdde52 100644 --- a/source3/include/smb_acls.h +++ b/source3/include/smb_acls.h @@ -30,6 +30,7 @@ typedef mode_t SMB_ACL_PERM_T; /* Types of ACLs. */ enum smb_acl_tag_t { + SMB_ACL_TAG_INVALID=0, SMB_ACL_USER=1, SMB_ACL_USER_OBJ, SMB_ACL_GROUP, diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index eba5fc44b6..00264bf0ce 100644 --- a/source3/lib/sysacls.c +++ b/source3/lib/sysacls.c @@ -273,7 +273,7 @@ int sys_acl_create_entry(SMB_ACL_T *acl_p, SMB_ACL_ENTRY_T *entry_p) } entry_d = &acl_d->acl[acl_d->count++]; - entry_d->a_type = 0; + entry_d->a_type = SMB_ACL_TAG_INVALID; entry_d->uid = -1; entry_d->gid = -1; entry_d->a_perm = 0; |