summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-12-04 00:35:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-12-04 00:35:31 +0000
commit077ee4a7ac7fa8f274269bfc5130d5abff9f35e0 (patch)
treef7536403b0bf7346eb957c106085d6418266e374
parent1e0d5f069592ebce58c35e95b0dcdbc5516dd268 (diff)
downloadsamba-077ee4a7ac7fa8f274269bfc5130d5abff9f35e0.tar.gz
samba-077ee4a7ac7fa8f274269bfc5130d5abff9f35e0.tar.xz
samba-077ee4a7ac7fa8f274269bfc5130d5abff9f35e0.zip
fixed SACL bug
-rw-r--r--source/utils/smbcacls.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/utils/smbcacls.c b/source/utils/smbcacls.c
index 65c88b479e0..776ff197157 100644
--- a/source/utils/smbcacls.c
+++ b/source/utils/smbcacls.c
@@ -233,17 +233,12 @@ static void sec_desc_print(FILE *f, SEC_DESC *sd)
fprintf(f, "DACL:");
print_ace(f, ace);
}
-
for (i = 0; sd->sacl && i < sd->sacl->num_aces; i++) {
SEC_ACE *ace = &sd->sacl->ace[i];
- fstring sidstr;
-
- SidToString(sidstr, &ace->sid);
-
- fprintf(f, "SACL:%s:%x:%x:%08x\n", sidstr,
- ace->type, ace->flags,
- ace->info.mask);
+ fprintf(f, "SACL:");
+ print_ace(f, ace);
}
+
}