sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 979f3cb8441cd259acfe42d91884db8b81dcbf5d
parent fb4ca81fe8f98dd46e3b7d536d219b8cc3a33137
Author: sin <sin@2f30.org>
Date:   Wed,  7 Oct 2015 16:23:46 +0100

env: Fix return value if the command could not be found

Diffstat:
Menv.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/env.c b/env.c @@ -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++)