svn commit: samba r16899 - in trunk/source/printing: .

vlendec at samba.org vlendec at samba.org
Sun Jul 9 13:46:00 GMT 2006


Author: vlendec
Date: 2006-07-09 13:45:59 +0000 (Sun, 09 Jul 2006)
New Revision: 16899

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

Log:
Convert print_time_access_check to servicename
Modified:
   trunk/source/printing/nt_printing.c
   trunk/source/printing/printing.c


Changeset:
Modified: trunk/source/printing/nt_printing.c
===================================================================
--- trunk/source/printing/nt_printing.c	2006-07-09 13:41:56 UTC (rev 16898)
+++ trunk/source/printing/nt_printing.c	2006-07-09 13:45:59 UTC (rev 16899)
@@ -5445,7 +5445,7 @@
  Check the time parameters allow a print operation.
 *****************************************************************************/
 
-BOOL print_time_access_check(int snum)
+BOOL print_time_access_check(const char *servicename)
 {
 	NT_PRINTER_INFO_LEVEL *printer = NULL;
 	BOOL ok = False;
@@ -5453,7 +5453,7 @@
 	struct tm *t;
 	uint32 mins;
 
-	if (!W_ERROR_IS_OK(get_a_printer(NULL, &printer, 2, lp_servicename(snum))))
+	if (!W_ERROR_IS_OK(get_a_printer(NULL, &printer, 2, servicename)))
 		return False;
 
 	if (printer->info_2->starttime == 0 && printer->info_2->untiltime == 0)

Modified: trunk/source/printing/printing.c
===================================================================
--- trunk/source/printing/printing.c	2006-07-09 13:41:56 UTC (rev 16898)
+++ trunk/source/printing/printing.c	2006-07-09 13:45:59 UTC (rev 16899)
@@ -2338,7 +2338,7 @@
 		return (uint32)-1;
 	}
 
-	if (!print_time_access_check(snum)) {
+	if (!print_time_access_check(lp_servicename(snum))) {
 		DEBUG(3, ("print_job_start: job start denied by time check\n"));
 		release_print_db(pdb);
 		return (uint32)-1;



More information about the samba-cvs mailing list