From 2de8d8c2d9dcefa066dd6b5333a8a133917502d6 Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Wed, 24 Jul 2002 08:21:04 +0000 Subject: #101669# protect printer names by quotes --- psprint/source/printer/printerinfomanager.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'psprint') diff --git a/psprint/source/printer/printerinfomanager.cxx b/psprint/source/printer/printerinfomanager.cxx index aeb625a5b9d9..18b135488d6c 100644 --- a/psprint/source/printer/printerinfomanager.cxx +++ b/psprint/source/printer/printerinfomanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: printerinfomanager.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: pl $ $Date: 2001-08-06 13:46:21 $ + * last change: $Author: pl $ $Date: 2002-07-24 09:21:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -884,13 +884,13 @@ struct SystemCommandParameters static const struct SystemCommandParameters aParms[] = { #ifdef LINUX - { "/usr/sbin/lpc status", "lpr -P (PRINTER)", "", ":", 0 }, - { "lpc status", "lpr -P (PRINTER)", "", ":", 0 }, - { "LANG=C;LC_ALL=C;export LANG LC_ALL;lpstat -s", "lp -d (PRINTER)", "system for ", ": ", 1 } + { "/usr/sbin/lpc status", "lpr -P \"(PRINTER)\"", "", ":", 0 }, + { "lpc status", "lpr -P \"(PRINTER)\"", "", ":", 0 }, + { "LANG=C;LC_ALL=C;export LANG LC_ALL;lpstat -s", "lp -d \"(PRINTER)\"", "system for ", ": ", 1 } #else - { "LANG=C;LC_ALL=C;export LANG LC_ALL;lpstat -s", "lp -d (PRINTER)", "system for ", ": ", 1 }, - { "/usr/sbin/lpc status", "lpr -P (PRINTER)", "", ":", 0 }, - { "lpc status", "lpr -P (PRINTER)", "", ":", 0 } + { "LANG=C;LC_ALL=C;export LANG LC_ALL;lpstat -s", "lp -d \"(PRINTER)\"", "system for ", ": ", 1 }, + { "/usr/sbin/lpc status", "lpr -P \"(PRINTER)\"", "", ":", 0 }, + { "lpc status", "lpr -P \"(PRINTER)\"", "", ":", 0 } #endif }; -- cgit v1.2.3