sbase

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

commit 6065e63e32cca3bc3f848349dc125920183178f2
parent d28aef25c5c545dbde1f495e910bce723ec528c3
Author: sin <sin@2f30.org>
Date:   Wed Oct  7 16:23:46 +0100

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

Diffstat:
env.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++)