From: Evgeny Vereshchagin Date: Sun, 25 Oct 2015 18:29:24 +0000 (+0000) Subject: run: fix "couldn't find executable" for the existing executables X-Git-Tag: v228~149^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9dae55f4bb7d2f5d09995c5560e83e22b96df89f;p=thirdparty%2Fsystemd.git run: fix "couldn't find executable" for the existing executables Fixes: #1672 --- diff --git a/src/run/run.c b/src/run/run.c index 6d3e739882d..e81d0892e34 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -1162,11 +1162,6 @@ int main(int argc, char* argv[]) { log_error_errno(r, "Failed to find executable %s: %m", argv[optind]); goto finish; } - if (r == 0) { - log_error("Couldn't find executable %s.", argv[optind]); - r = -ENOENT; - goto finish; - } argv[optind] = command; }