summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-08-01 00:41:19 +0000
committerJeremy Allison <jra@samba.org>2000-08-01 00:41:19 +0000
commitd95777ac34f68a3525786103b9217f6397d9f1d4 (patch)
tree08979563f948bea642c0afeeea00f79179c4e104 /source3/rpc_server
parent55ff9cb38bbabfaee591f6f5190e57b5564f3942 (diff)
downloadsamba-d95777ac34f68a3525786103b9217f6397d9f1d4.tar.gz
samba-d95777ac34f68a3525786103b9217f6397d9f1d4.tar.bz2
samba-d95777ac34f68a3525786103b9217f6397d9f1d4.zip
Added print job substitutions for %{printername}, %{sharename} and %{portname}
from the NT printer tdb. Also added checks for time restrictions before allowing a job to print. Jeremy. (This used to be commit 8cfb55e81abebf0354e6d470ed68bbac1d6560ad)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 47df204ef3..4774375db4 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -28,10 +28,6 @@
extern int DEBUGLEVEL;
extern pstring global_myname;
-#ifndef SAMBA_PRINTER_PORT_NAME
-#define SAMBA_PRINTER_PORT_NAME "Samba Printer Port"
-#endif
-
#ifndef MAX_OPEN_PRINTER_EXS
#define MAX_OPEN_PRINTER_EXS 50
#endif
@@ -3339,7 +3335,7 @@ static void fill_job_info_1(JOB_INFO_1 *job_info, print_queue_struct *queue,
job_info->totalpages=0;
job_info->pagesprinted=0;
- make_systemtime(&(job_info->submitted), t);
+ make_systemtime(&job_info->submitted, t);
}
/****************************************************************************