mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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 6fd5dc8145
)
This commit is contained in:
parent
cbddae005f
commit
76dca9c1fb
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user