summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display_sec.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-07 04:22:16 +0000
committerTim Potter <tpot@samba.org>2002-03-07 04:22:16 +0000
commit6fbd44c77a4512375fab9197e0a03af08d01b57c (patch)
tree60ba3c03c1d581e20e4405b24c7e237b92badb34 /source3/rpcclient/display_sec.c
parent11c0e88d9ef1728a4cfe518d85bb4cd3678edc43 (diff)
downloadsamba-6fbd44c77a4512375fab9197e0a03af08d01b57c.tar.gz
samba-6fbd44c77a4512375fab9197e0a03af08d01b57c.tar.bz2
samba-6fbd44c77a4512375fab9197e0a03af08d01b57c.zip
Fixed a bunch of crash bugs for enumprinters at various info levels.
(This used to be commit d9df00e2b1764619491900b7dbd7d5af34feed1b)
Diffstat (limited to 'source3/rpcclient/display_sec.c')
-rw-r--r--source3/rpcclient/display_sec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpcclient/display_sec.c b/source3/rpcclient/display_sec.c
index 9d54fe2235..37043c5012 100644
--- a/source3/rpcclient/display_sec.c
+++ b/source3/rpcclient/display_sec.c
@@ -122,22 +122,22 @@ void display_sec_desc(SEC_DESC *sec)
{
fstring sid_str;
- if (sec->off_sacl != 0) {
- printf("S-ACL\n");
+ if (sec->sacl) {
+ printf("SACL\n");
display_sec_acl(sec->sacl);
}
- if (sec->off_dacl != 0) {
- printf("D-ACL\n");
+ if (sec->dacl) {
+ printf("DACL\n");
display_sec_acl(sec->dacl);
}
- if (sec->off_owner_sid != 0) {
+ if (sec->owner_sid) {
sid_to_string(sid_str, sec->owner_sid);
printf("\tOwner SID:\t%s\n", sid_str);
}
- if (sec->off_grp_sid != 0) {
+ if (sec->grp_sid) {
sid_to_string(sid_str, sec->grp_sid);
printf("\tParent SID:\t%s\n", sid_str);
}