summaryrefslogtreecommitdiff
path: root/src/run/run.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-10-25 18:29:24 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-10-25 18:29:24 +0000
commit9dae55f4bb7d2f5d09995c5560e83e22b96df89f (patch)
tree5a82265dd9f45a5ff7aa0cb778e43765e6b10477 /src/run/run.c
parentf739078599ee9b1e00f643b5b4c45a0d57938fe1 (diff)
run: fix "couldn't find executable" for the existing executables
Fixes: #1672
Diffstat (limited to 'src/run/run.c')
-rw-r--r--src/run/run.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 6d3e739882..e81d0892e3 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;
}