]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
run: fix "couldn't find executable" for the existing executables 1674/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 25 Oct 2015 18:29:24 +0000 (18:29 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 25 Oct 2015 18:29:24 +0000 (18:29 +0000)
Fixes: #1672
src/run/run.c

index 6d3e739882dbd277574bcbe00104288ecfb8787e..e81d0892e341be2200fe9619cda76d91d30b4cf0 100644 (file)
@@ -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;
         }