From 9dae55f4bb7d2f5d09995c5560e83e22b96df89f Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 25 Oct 2015 18:29:24 +0000 Subject: run: fix "couldn't find executable" for the existing executables Fixes: #1672 --- src/run/run.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/run') 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; } -- cgit v1.2.3-54-g00ecf