Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/libcli/security/display_sec.c

    r414 r745  
    2020
    2121#include "includes.h"
    22 #include "librpc/gen_ndr/security.h"
    23 #include "libcli/security/secace.h"
    24 #include "libcli/security/dom_sid.h"
     22#include "libcli/security/security.h"
    2523#include "librpc/ndr/libndr.h"
     24#include "libcli/security/display_sec.h"
    2625
    2726/****************************************************************************
     
    160159static void disp_sec_ace_object(struct security_ace_object *object)
    161160{
     161        char *str;
    162162        if (object->flags & SEC_ACE_OBJECT_TYPE_PRESENT) {
     163                str = GUID_string(NULL, &object->type.type);
     164                if (str == NULL) return;
    163165                printf("Object type: SEC_ACE_OBJECT_TYPE_PRESENT\n");
    164                 printf("Object GUID: %s\n", GUID_string(talloc_tos(),
    165                         &object->type.type));
     166                printf("Object GUID: %s\n", str);
     167                talloc_free(str);
    166168        }
    167169        if (object->flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT) {
     170                str = GUID_string(NULL, &object->inherited_type.inherited_type);
     171                if (str == NULL) return;
    168172                printf("Object type: SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT\n");
    169                 printf("Object GUID: %s\n", GUID_string(talloc_tos(),
    170                         &object->inherited_type.inherited_type));
     173                printf("Object GUID: %s\n", str);
     174                talloc_free(str);
    171175        }
    172176}
     
    231235void display_sec_acl(struct security_acl *sec_acl)
    232236{
    233         int i;
    234 
    235         printf("\tACL\tNum ACEs:\t%d\trevision:\t%x\n",
     237        uint32_t i;
     238
     239        printf("\tACL\tNum ACEs:\t%u\trevision:\t%x\n",
    236240                         sec_acl->num_aces, sec_acl->revision);
    237241        printf("\t---\n");
Note: See TracChangeset for help on using the changeset viewer.