]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r5696: BUG 2355: use bsd style commands for 'printing = cups' but \!defined(HAVE_CUPS)
authorGerald Carter <jerry@samba.org>
Tue, 8 Mar 2005 21:04:36 +0000 (21:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:55 +0000 (10:55 -0500)
source/param/loadparm.c

index 21abafb578353e1a7b59ab5bd4d1073b370d2a15..d86f4b391a2a0621a2f02f55b684bfef0a205f60 100644 (file)
@@ -1239,9 +1239,9 @@ static void init_printer_values(service *pService)
                        string_set(&pService->szQueuepausecommand, "");
                        string_set(&pService->szQueueresumecommand, "");
 #else
-                       string_set(&pService->szLpqcommand, "/usr/bin/lpstat -o '%p'");
-                       string_set(&pService->szLprmcommand, "/usr/bin/cancel '%p-%j'");
-                       string_set(&pService->szPrintcommand, "/usr/bin/lp -d '%p' %s; rm %s");
+                       string_set(&pService->szLpqcommand, "/usr/bin/lpq -P'%p'");
+                       string_set(&pService->szLprmcommand, "/usr/bin/lprm -P'%p' %j");
+                       string_set(&pService->szPrintcommand, "/usr/bin/lpr -P'%p' %s; rm %s");
                        string_set(&pService->szLppausecommand, "lp -i '%p-%j' -H hold");
                        string_set(&pService->szLpresumecommand, "lp -i '%p-%j' -H resume");
                        string_set(&pService->szQueuepausecommand, "/usr/bin/disable '%p'");