summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-09 21:08:22 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-09 21:08:22 +0000
commit65d9440a1ea27313093b7f2660dfb4b63205305b (patch)
tree1ce9fef73e4905c9a72f95edaea72b356564c061
parent31694907dde18fc70d7b3e3813e5183d35f0e5db (diff)
downloadexecline-65d9440a1ea27313093b7f2660dfb4b63205305b.tar.xz
Fix posix-cd's ENOMEM exit code
-rw-r--r--AUTHORS1
-rw-r--r--src/posix/posix-cd.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 581af2e..8aa64da 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -21,3 +21,4 @@ Thanks to:
Colin Booth <colin@heliocat.net>
Jesse Young <jlyo@jlyo.org>
Danilo Spinella <danyspin97@protonmail.com>
+ Éric Vidal <eric@obarun.org>
diff --git a/src/posix/posix-cd.c b/src/posix/posix-cd.c
index 8a98981..49a8430 100644
--- a/src/posix/posix-cd.c
+++ b/src/posix/posix-cd.c
@@ -16,7 +16,7 @@
#define USAGE "posix-cd [ -L | -P ] [ - | path ] [ prog... ]"
#define dieusage() strerr_dieusage(100, USAGE)
-#define dienomem() strerr_diefu1sys(100, "stralloc_catb")
+#define dienomem() strerr_diefu1sys(111, "stralloc_catb")
int main (int argc, char const **argv, char const *const *envp)
{