From ae7acb59ac3c982558310e24edadeb552ea58f15 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 20 Oct 2019 02:52:41 +0000 Subject: Don't depend on PATH_MAX being defined --- src/posix/posix-cd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/posix/posix-cd.c b/src/posix/posix-cd.c index 1addd8e..b4d2005 100644 --- a/src/posix/posix-cd.c +++ b/src/posix/posix-cd.c @@ -115,6 +115,7 @@ int main (int argc, char const **argv, char const *const *envp) sa = tmp ; } if (!pathexec_env("PWD", sa.s)) dienomem() ; +#ifdef PATH_MAX if (sa.len > PATH_MAX && strlen(where) < PATH_MAX && x && *x) { size_t len = strlen(x) ; @@ -128,6 +129,7 @@ int main (int argc, char const **argv, char const *const *envp) } } } +#endif } /* fking finally */ -- cgit v1.2.3