Skip to content
Commit ef2cef07 authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

KInfocenter/OpenGL: fix ReadPipe() to return 0 in the case that the

command cannot be run

ReadPipe() doesn't return 0 as expected in the case that the command is
not found. but the length of sh's output which is "command not found"
in this case. This is because popen() does not fail if the command is
not found, because it _can_ run "sh". (according to the man page, popen
calls "/bin/sh -c command")
To fix this, ReadPipe() should check the return code of the call to
pclose() (see "man pclose"), and return 0 if this is not equal to 0.

CCBUG: 327382
REVIEW: 113779
parent 1d39c389
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment