projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f739078
)
run: fix "couldn't find executable" for the existing executables
author
Evgeny Vereshchagin
<evvers@ya.ru>
Sun, 25 Oct 2015 18:29:24 +0000
(18:29 +0000)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Sun, 25 Oct 2015 18:29:24 +0000
(18:29 +0000)
Fixes: #1672
src/run/run.c
patch
|
blob
|
history
diff --git
a/src/run/run.c
b/src/run/run.c
index 6d3e739882dbd277574bcbe00104288ecfb8787e..e81d0892e341be2200fe9619cda76d91d30b4cf0 100644
(file)
--- 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;
}