summaryrefslogtreecommitdiff
path: root/source/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
commit22ef5160bf79b968f5bdd3393535177b9d30e178 (patch)
tree4dd6ebdb1e9dac7aa419c60b059982e9fe1e0495 /source/rpcclient/display.c
parentcce693135e146c9f4c9243f3dcb5091c46d1fcdb (diff)
downloadsamba-22ef5160bf79b968f5bdd3393535177b9d30e178.tar.gz
oops!
Diffstat (limited to 'source/rpcclient/display.c')
-rw-r--r--source/rpcclient/display.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/source/rpcclient/display.c b/source/rpcclient/display.c
index c35f8db9af5..d3c2f84d210 100644
--- a/source/rpcclient/display.c
+++ b/source/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;