summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-12-12 06:14:01 +0000
committerTim Potter <tpot@samba.org>2000-12-12 06:14:01 +0000
commit76dca9c1fb42ea461dbf95e7357385e8692bc94b (patch)
tree5eea0c529a38a1f4f3493501ff92bc5518f1acc9 /source3
parentcbddae005f1e6e787be925fab6e4b34f2a3471f0 (diff)
downloadsamba-76dca9c1fb42ea461dbf95e7357385e8692bc94b.tar.gz
samba-76dca9c1fb42ea461dbf95e7357385e8692bc94b.tar.bz2
samba-76dca9c1fb42ea461dbf95e7357385e8692bc94b.zip
Don't print out the security descriptor type as it is automatically
calculated by the new make_sec_desc() function. (This used to be commit 6fd5dc81458317e106f5ea24958cefe4146c90a6)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcacls.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index aff5244fc5..ae852b3e3c 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -275,7 +275,6 @@ static SEC_DESC *sec_desc_parse(char *str)
DOM_SID *grp_sid=NULL, *owner_sid=NULL;
SEC_ACL *dacl=NULL;
int revision=1;
- int type=0x8004;
while (next_token(&p, tok, " \t,\r\n", sizeof(tok))) {
@@ -284,11 +283,6 @@ static SEC_DESC *sec_desc_parse(char *str)
continue;
}
- if (strncmp(tok,"TYPE:", 5) == 0) {
- type = strtol(tok+5, NULL, 16);
- continue;
- }
-
if (strncmp(tok,"OWNER:", 6) == 0) {
owner_sid = (DOM_SID *)calloc(1, sizeof(DOM_SID));
if (!owner_sid ||
@@ -341,7 +335,7 @@ static void sec_desc_print(FILE *f, SEC_DESC *sd)
fstring sidstr;
int i;
- printf("REVISION:%d\nTYPE:0x%x\n", sd->revision, sd->type);
+ printf("REVISION:%d\n", sd->revision);
/* Print owner and group sid */