summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-07-24 08:21:04 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-07-24 08:21:04 +0000
commit2de8d8c2d9dcefa066dd6b5333a8a133917502d6 (patch)
tree82c8be399dcaaa0f01e6f733459aa6e1eb87e490 /psprint
parent7b71559303087ff116edc5b712561e636b2e8d19 (diff)
#101669# protect printer names by quotes
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/printer/printerinfomanager.cxx16
1 files changed, 8 insertions, 8 deletions
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
};