svn commit: samba r7021 - in trunk/source: include registry

jerry at samba.org jerry at samba.org
Fri May 27 13:58:51 GMT 2005


Author: jerry
Date: 2005-05-27 13:58:49 +0000 (Fri, 27 May 2005)
New Revision: 7021

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7021

Log:
fixing printer ace values and getting rid of false compiler warning about unitialized variable
Modified:
   trunk/source/include/rpc_spoolss.h
   trunk/source/registry/regfio.c


Changeset:
Modified: trunk/source/include/rpc_spoolss.h
===================================================================
--- trunk/source/include/rpc_spoolss.h	2005-05-27 13:58:04 UTC (rev 7020)
+++ trunk/source/include/rpc_spoolss.h	2005-05-27 13:58:49 UTC (rev 7021)
@@ -191,8 +191,8 @@
 /* ACE masks for the various print permissions */
 
 #define PRINTER_ACE_FULL_CONTROL      (GENERIC_ALL_ACCESS|PRINTER_ALL_ACCESS)
-#define PRINTER_ACE_MANAGE_DOCUMENTS  READ_CONTROL_ACCESS
-#define PRINTER_ACE_PRINT             (READ_CONTROL_ACCESS|PRINTER_ACCESS_USE)
+#define PRINTER_ACE_MANAGE_DOCUMENTS  (GENERIC_ALL_ACCESS|READ_CONTROL_ACCESS)
+#define PRINTER_ACE_PRINT             (GENERIC_EXECUTE_ACCESS|READ_CONTROL_ACCESS|PRINTER_ACCESS_USE)
 
 
 /* Notify field types */

Modified: trunk/source/registry/regfio.c
===================================================================
--- trunk/source/registry/regfio.c	2005-05-27 13:58:04 UTC (rev 7020)
+++ trunk/source/registry/regfio.c	2005-05-27 13:58:49 UTC (rev 7021)
@@ -1679,7 +1679,7 @@
                                SEC_DESC *sec_desc, REGF_NK_REC *parent )
 {
 	REGF_NK_REC *nk;
-	REGF_HBIN *vlist_hbin;
+	REGF_HBIN *vlist_hbin = NULL;
 	uint32 size;
 
 	if ( !(nk = TALLOC_ZERO_P( file->mem_ctx, REGF_NK_REC )) )



More information about the samba-cvs mailing list