[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Wed Feb 17 18:19:28 MST 2010


The branch, master has been updated
       via  9ff2c1e... testprogs: print SDDL string of printer security descriptors
      from  6cf10cc... s3-modules: fix get_acl_blob in the acl_tdb VFS module.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 9ff2c1ea64a267bb459eaba4a273c8300bb82c5a
Author: Günther Deschner <gd at samba.org>
Date:   Tue Feb 16 16:21:02 2010 +0100

    testprogs: print SDDL string of printer security descriptors

-----------------------------------------------------------------------

Summary of changes:
 testprogs/win32/spoolss/printlib.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/testprogs/win32/spoolss/printlib.c b/testprogs/win32/spoolss/printlib.c
index a41a5c1..c1eaeeb 100644
--- a/testprogs/win32/spoolss/printlib.c
+++ b/testprogs/win32/spoolss/printlib.c
@@ -152,15 +152,25 @@ void print_sid(LPSTR str, PSID sid)
 
 void print_secdesc(SECURITY_DESCRIPTOR *secdesc)
 {
+	LPSTR sd_string;
+
 	if (secdesc == NULL) {
 		printf("\tSecurity Descriptor\t= (null)\n");
 		return;
 	}
 
+	if (!ConvertSecurityDescriptorToStringSecurityDescriptor(secdesc, 1, 7, &sd_string, NULL)) {
+		PrintLastError();
+		return;
+	}
+
+	printf("%s\n", sd_string);
+	LocalFree(sd_string);
+
+#if 0
 	printf("\tRevision\t= 0x%x\n", secdesc->Revision);
 	printf("\tSbz1\t\t= 0x%x\n", secdesc->Sbz1);
 	printf("\tControl\t\t= 0x%x\n", secdesc->Control);
-#if 0
 	print_sid("\tOwner\t\t= ", secdesc->Owner);
 	print_sid("\tGroup\t\t= ",secdesc->Group);
 	print_acl("\tSacl\t\t= ", secdesc->Sacl);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list