From 612cbb6a6039c2cafb3de5e644f23a2a26d6c645 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 2 Apr 1998 01:01:24 +0000 Subject: Patch from Chris Maltby . His comments follow: + improvement to smbtar to allow exclusion/inclusion of system and hidden files, and to generate a listing of what has been archived in a format useful for automated backup systems. + add the "Softq" spooling system to samba's printing capabilities. + I have "fixed" the intrusion of US style dates into samba reporting as well. The format yyyy/mm/dd is not only uunambiguous, but also has the benefit of making lexicographic sorts work correctly. Jeremy. (This used to be commit f9dacd1d8b89fccad859c0c6bc7a492823eb4b06) --- source3/param/loadparm.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 70f06065a3..2527692bc5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -407,7 +407,8 @@ static struct enum_list enum_security[] = {{SEC_SHARE, "SHARE"}, {SEC_USER, "US static struct enum_list enum_printing[] = {{PRINT_SYSV, "sysv"}, {PRINT_AIX, "aix"}, {PRINT_HPUX, "hpux"}, {PRINT_BSD, "bsd"}, {PRINT_QNX, "qnx"}, {PRINT_PLP, "plp"}, - {PRINT_LPRNG, "lprng"}, {-1, NULL}}; + {PRINT_LPRNG, "lprng"}, {PRINT_SOFTQ, "softq"}, + {-1, NULL}}; static struct enum_list enum_announce_as[] = {{ANNOUNCE_AS_NT, "NT"}, {ANNOUNCE_AS_WIN95, "win95"}, {ANNOUNCE_AS_WFW, "WfW"}, {-1, NULL}}; @@ -821,6 +822,13 @@ static void init_locals(void) string_initial(&sDefault.szPrintcommand,"lp -r -P%p %s"); break; + case PRINT_SOFTQ: + string_initial(&sDefault.szLpqcommand,"qstat -l -d%p"); + string_initial(&sDefault.szLprmcommand,"qstat -s -j%j -c"); + string_initial(&sDefault.szPrintcommand,"lp -d%p -s %s; rm %s"); + string_initial(&sDefault.szLppausecommand,"qstat -s -j%j -h"); + string_initial(&sDefault.szLpresumecommand,"qstat -s -j%j -r"); + break; } } -- cgit