diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-11 01:34:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-11 01:34:37 +0000 |
commit | 3a38f122d9bf747ae31d630da1ce6762aefa47ce (patch) | |
tree | 5359bc96df1e8e32f454c4612d8d96939a530109 /source3/utils | |
parent | abd96b890bc03e06672777c73b55a18b9e869620 (diff) | |
download | samba-3a38f122d9bf747ae31d630da1ce6762aefa47ce.tar.gz samba-3a38f122d9bf747ae31d630da1ce6762aefa47ce.tar.bz2 samba-3a38f122d9bf747ae31d630da1ce6762aefa47ce.zip |
Added SMB_ prefix to enums that clash with Solaris ACL definitions.
Jeremy.
(This used to be commit 493d2c316a9e80de0239ef3a6f0b3f4ec9ac6e13)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcacls.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index ea4191988a..6f5bcc4476 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -39,7 +39,7 @@ TALLOC_CTX *ctx; than going via LSA calls to resolve them */ static int numeric; -enum acl_mode {ACL_SET, ACL_DELETE, ACL_MODIFY, ACL_ADD }; +enum acl_mode {SMB_ACL_SET, SMB_ACL_DELETE, SMB_ACL_MODIFY, SMB_ACL_ADD }; enum chown_mode {REQUEST_NONE, REQUEST_CHOWN, REQUEST_CHGRP}; enum exit_values {EXIT_OK, EXIT_FAILED, EXIT_PARSE_ERROR}; @@ -600,7 +600,7 @@ static int cacl_set(struct cli_state *cli, char *filename, /* the logic here is rather more complex than I would like */ switch (mode) { - case ACL_DELETE: + case SMB_ACL_DELETE: for (i=0;sd->dacl && i<sd->dacl->num_aces;i++) { BOOL found = False; @@ -632,7 +632,7 @@ static int cacl_set(struct cli_state *cli, char *filename, } break; - case ACL_MODIFY: + case SMB_ACL_MODIFY: for (i=0;sd->dacl && i<sd->dacl->num_aces;i++) { BOOL found = False; @@ -654,13 +654,13 @@ static int cacl_set(struct cli_state *cli, char *filename, break; - case ACL_ADD: + case SMB_ACL_ADD: for (i=0;sd->dacl && i<sd->dacl->num_aces;i++) { add_ace(&old->dacl, &sd->dacl->ace[i]); } break; - case ACL_SET: + case SMB_ACL_SET: old = sd; break; } @@ -879,22 +879,22 @@ You can string acls together with spaces, commas or newlines\n\ case 'S': the_acl = optarg; - mode = ACL_SET; + mode = SMB_ACL_SET; break; case 'D': the_acl = optarg; - mode = ACL_DELETE; + mode = SMB_ACL_DELETE; break; case 'M': the_acl = optarg; - mode = ACL_MODIFY; + mode = SMB_ACL_MODIFY; break; case 'A': the_acl = optarg; - mode = ACL_ADD; + mode = SMB_ACL_ADD; break; case 'C': |