summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Vogt <fabian@ritter-vogt.de>2016-05-11 19:01:29 +0200
committerFabian Vogt <fabian@ritter-vogt.de>2016-05-11 19:02:52 +0200
commitb1e763cdc0178b34d8ebf1499ae23b893e48e251 (patch)
tree22baf511b4cd5ddaf65ad2c10384c31c23a485cf
parentdda0418a917136ed16930a556d158565231867b2 (diff)
downloadlibproxy-git-b1e763cdc0178b34d8ebf1499ae23b893e48e251.tar.gz
config_kde: Don't pollute stderr
- https://bugzilla.opensuse.org/show_bug.cgi?id=979232
-rw-r--r--libproxy/modules/config_kde.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libproxy/modules/config_kde.cpp b/libproxy/modules/config_kde.cpp
index 2f72e8f..b9bd241 100644
--- a/libproxy/modules/config_kde.cpp
+++ b/libproxy/modules/config_kde.cpp
@@ -135,7 +135,9 @@ public:
private:
string command_output(const string &cmdline) throw (runtime_error) {
- FILE *pipe = popen(cmdline.c_str(), "r");
+ // Capture stderr as well
+ const string command = "(" + cmdline + ")2>&1";
+ FILE *pipe = popen(command.c_str(), "r");
if (!pipe)
throw runtime_error("Unable to run command");