diff options
author | Jeremy Allison <jra@samba.org> | 2000-09-13 02:24:35 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-09-13 02:24:35 +0000 |
commit | c1d25bdb0cb4ad414a533b0a8fb66b6968baa83e (patch) | |
tree | 015fe56b502d678991af62a8932d903f0d56f00e /source3/printing/nt_printing.c | |
parent | 6ab4544738ed91e1d9f88a2791c1799333f64dae (diff) | |
download | samba-c1d25bdb0cb4ad414a533b0a8fb66b6968baa83e.tar.gz samba-c1d25bdb0cb4ad414a533b0a8fb66b6968baa83e.tar.bz2 samba-c1d25bdb0cb4ad414a533b0a8fb66b6968baa83e.zip |
Added time check test before allowing print job.
Jeremy.
(This used to be commit 0249de4cd91d72efb344e9fb05e2be2cb3f03945)
Diffstat (limited to 'source3/printing/nt_printing.c')
-rw-r--r-- | source3/printing/nt_printing.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index a7ca487d00..734cf7f8a8 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1928,7 +1928,11 @@ BOOL get_specific_param(NT_PRINTER_INFO_LEVEL printer, uint32 level, while (param != NULL) { +#if 1 /* JRA - I think this should be case insensitive.... */ + if ( strequal(value, param->value) +#else if ( !strcmp(value, param->value) +#endif && strlen(value)==strlen(param->value)) break; @@ -2418,6 +2422,9 @@ BOOL print_time_access_check(int snum) free_a_printer(&printer, 2); + if (!ok) + errno = EACCES; + return ok; } |