[hackers] [sbase] env: Fix return value if the command could not be found || sin
commit 979f3cb8441cd259acfe42d91884db8b81dcbf5d
Author: sin <sin_AT_2f30.org>
AuthorDate: Wed Oct 7 16:23:46 2015 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Wed Oct 7 16:25:54 2015 +0100
env: Fix return value if the command could not be found
diff --git a/env.c b/env.c
index 72d078f..953eec2 100644
--- a/env.c
+++ b/env.c
_AT_@ -39,7 +39,7 @@ main(int argc, char *argv[])
execvp(*argv, argv);
savederrno = errno;
weprintf("execvp %s:", *argv);
- _exit(126 + (savederrno == EEXIST));
+ _exit(126 + (savederrno == ENOENT));
}
for (; environ && *environ; environ++)
Received on Wed Oct 07 2015 - 17:25:59 CEST
This archive was generated by hypermail 2.3.0
: Wed Oct 07 2015 - 17:36:11 CEST