summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb_acls.h1
-rw-r--r--source3/lib/sysacls.c2
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;