summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-11 23:00:52 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-11 23:00:52 +0000
commit86a62c423ecdf2340df7063a6bd6fad28793c4e1 (patch)
tree151abd1b3081456a8635151f3a06a7f53b1af1ac /source3/rpcclient/display.c
parent14039d5122e2263e99ca08e1b32a3c1482afdc3f (diff)
downloadsamba-86a62c423ecdf2340df7063a6bd6fad28793c4e1.tar.gz
samba-86a62c423ecdf2340df7063a6bd6fad28793c4e1.tar.bz2
samba-86a62c423ecdf2340df7063a6bd6fad28793c4e1.zip
oops!
(This used to be commit 22ef5160bf79b968f5bdd3393535177b9d30e178)
Diffstat (limited to 'source3/rpcclient/display.c')
-rw-r--r--source3/rpcclient/display.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c
index c35f8db9af..d3c2f84d21 100644
--- a/source3/rpcclient/display.c
+++ b/source3/rpcclient/display.c
@@ -1138,14 +1138,15 @@ void display_sec_acl(FILE *out_hnd, enum action_type action, SEC_ACL *acl)
{
case ACTION_HEADER:
{
- fprintf(out_hnd, "\tACL\tNum ACEs: %d\tunk 1: %x\n", acl->num_aces, acl->unknown_1);
+ fprintf(out_hnd, "\tACL\tNum ACEs:\t%d\trevision:\t%x\n",
+ acl->num_aces, acl->revision);
fprintf(out_hnd, "\t---\n");
break;
}
case ACTION_ENUMERATE:
{
- if (acl->acl_size != 0 && acl->num_aces != 0)
+ if (acl->size != 0 && acl->num_aces != 0)
{
int i;
for (i = 0; i < acl->num_aces; i++)
@@ -1175,7 +1176,8 @@ void display_sec_desc(FILE *out_hnd, enum action_type action, SEC_DESC *sec)
{
case ACTION_HEADER:
{
- fprintf(out_hnd, "\tSecurity Descriptor\tunk 1: %x\n", sec->unknown_1);
+ fprintf(out_hnd, "\tSecurity Descriptor\trevision:\t%x\ttype:\t%x\n",
+ sec->revision, sec->type);
fprintf(out_hnd, "\t-------------------\n");
break;
@@ -1184,21 +1186,21 @@ void display_sec_desc(FILE *out_hnd, enum action_type action, SEC_DESC *sec)
{
fstring sid_str;
- if (sec->off_acl != 0)
+ if (sec->off_dacl != 0)
{
- display_sec_acl(out_hnd, ACTION_HEADER , &sec->acl);
- display_sec_acl(out_hnd, ACTION_ENUMERATE, &sec->acl);
- display_sec_acl(out_hnd, ACTION_FOOTER , &sec->acl);
+ display_sec_acl(out_hnd, ACTION_HEADER , &sec->dacl);
+ display_sec_acl(out_hnd, ACTION_ENUMERATE, &sec->dacl);
+ display_sec_acl(out_hnd, ACTION_FOOTER , &sec->dacl);
}
if (sec->off_owner_sid != 0)
{
sid_to_string(sid_str, &sec->owner_sid);
- fprintf(out_hnd, "\tOwner SID: %s\n", sid_str);
+ fprintf(out_hnd, "\tOwner SID:\t%s\n", sid_str);
}
- if (sec->off_pnt_sid != 0)
+ if (sec->off_grp_sid != 0)
{
- sid_to_string(sid_str, &sec->parent_sid);
- fprintf(out_hnd, "\tParent SID: %s\n", sid_str);
+ sid_to_string(sid_str, &sec->grp_sid);
+ fprintf(out_hnd, "\tParent SID:\t%s\n", sid_str);
}
break;