From f9a28748cfa89d020249ca24d8fcbab1a2bdd4f5 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sat, 12 Feb 2005 14:41:00 +0000 Subject: r5359: BUG 2333: use the lpq command to pass in the correct printer name for cups_queue_get(). See comments in code for details (This used to be commit 3eee00e0d0e9b58cdd35209691072b625813681c) --- source3/param/loadparm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 45245e2cfe..80843eda82 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1226,7 +1226,9 @@ static void init_printer_values(service *pService) case PRINT_CUPS: #ifdef HAVE_CUPS - string_set(&pService->szLpqcommand, ""); + /* set the lpq command to contain the destination printer + name only. This is used by cups_queue_get() */ + string_set(&pService->szLpqcommand, "%p"); string_set(&pService->szLprmcommand, ""); string_set(&pService->szPrintcommand, ""); string_set(&pService->szLppausecommand, ""); -- cgit