Merge pull request #1674 from evverx/run-fix-couldnot-find-executable

run: fix "couldn't find executable" for the existing executables
This commit is contained in:
Lennart Poettering
2015-10-26 00:41:45 +01:00
-5
View 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;
}