summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-03-01 14:24:11 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-03-01 14:24:11 +0000
commit3517e4fb9e829e080c728dddabec25b6d11d717e (patch)
tree8fefe7d0e6869b387d77343261fc1eec7eb07780 /padmin
parent81a41b0d8aeca53ddf1e00b9374e83aa49658e82 (diff)
#95499# send stderr to /dev/null when querying for system commands
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/cmddlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/padmin/source/cmddlg.cxx b/padmin/source/cmddlg.cxx
index 49d8149d888c..a614469f76a5 100644
--- a/padmin/source/cmddlg.cxx
+++ b/padmin/source/cmddlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cmddlg.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: pl $ $Date: 2001-12-03 16:34:53 $
+ * last change: $Author: pl $ $Date: 2002-03-01 15:24:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -121,7 +121,7 @@ void CommandStore::getSystemPdfCommands( ::std::list< String >& rCommands )
String aCommand;
rtl_TextEncoding aEncoding = gsl_getSystemTextEncoding();
- pPipe = popen( "which gs", "r" );
+ pPipe = popen( "which gs 2>/dev/null", "r" );
if( pPipe )
{
fgets( pBuffer, sizeof( pBuffer ), pPipe );
@@ -136,7 +136,7 @@ void CommandStore::getSystemPdfCommands( ::std::list< String >& rCommands )
pclose( pPipe );
}
- pPipe = popen( "which distill", "r" );
+ pPipe = popen( "which distill 2>/dev/null", "r" );
if( pPipe )
{
fgets( pBuffer, sizeof( pBuffer ), pPipe );