From 25a685b71ad4e6584b41641fcbee1a972714a27a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 24 Aug 2006 19:56:20 +0000 Subject: r17804: Fix a enum/int mixup found by the IRIX compiler. Volker (This used to be commit 3a1cf623765cd8b6615ad317d25cebc379c762a2) --- source3/include/smb_acls.h | 1 + source3/lib/sysacls.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- cgit