[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeprint/cups
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2007-03-24 11:55:40
Message-ID: 1174737340.235964.30255.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 646045 by ossi:

use KShell instead of KProcess for argument quoting


 M  +4 -4      kmcupsmanager.cpp  


--- trunk/KDE/kdelibs/kdeprint/cups/kmcupsmanager.cpp #646044:646045
@@ -50,7 +50,7 @@
 #include <kactioncollection.h>
 #include <kmessagebox.h>
 #include <kaction.h>
-#include <kprocess.h>
+#include <kshell.h>
 #include <kfilterdev.h>
 #include <cups/cups.h>
 #include <cups/ppd.h>
@@ -546,11 +546,11 @@
 
 	KPipeProcess	in;
 	QFile		out(tmpFile);
-	QString cmd = KProcess::quote(exe);
+	QString cmd = KShell::quoteArg(exe);
 	cmd += " -t cups -d ";
-	cmd += KProcess::quote(comps[2]);
+	cmd += KShell::quoteArg(comps[2]);
 	cmd += " -p ";
-	cmd += KProcess::quote(comps[1]);
+	cmd += KShell::quoteArg(comps[1]);
 	if (in.open(cmd) && out.open(QIODevice::WriteOnly))
 	{
 		QTextStream	tin(&in), tout(&out);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic