summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-20 02:52:41 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-20 02:52:41 +0000
commitae7acb59ac3c982558310e24edadeb552ea58f15 (patch)
tree8a9859f49e4eb54d1b715a2d3a1d8825739e3e29 /src
parent4af37be2e303014deb4f26bea3e954913002d1b8 (diff)
downloadexecline-ae7acb59ac3c982558310e24edadeb552ea58f15.tar.xz
Don't depend on PATH_MAX being defined
Diffstat (limited to 'src')
-rw-r--r--src/posix/posix-cd.c2
1 files changed, 2 insertions, 0 deletions
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 */