summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 */