From 65d9440a1ea27313093b7f2660dfb4b63205305b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 9 Oct 2019 21:08:22 +0000 Subject: Fix posix-cd's ENOMEM exit code --- AUTHORS | 1 + src/posix/posix-cd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 581af2e..8aa64da 100644 --- a/AUTHORS +++ b/AUTHORS @@ -21,3 +21,4 @@ Thanks to: Colin Booth Jesse Young Danilo Spinella + Éric Vidal 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) { -- cgit v1.2.3