summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-05-27 19:36:56 +1000
committerDamien Miller <djm@mindrot.org>2005-05-27 19:36:56 +1000
commit287b4591945c27b374f810f44053b33206fb5eec (patch)
treecbb9754bb1a7dc5ae4d01febb24e0d413c308cfd /defines.h
parentde3cb0a3dc1bd98762afa3d71f3ffcdb76029fad (diff)
downloadopenssh-git-287b4591945c27b374f810f44053b33206fb5eec.tar.gz
- (djm) [defines.h] Use our realpath if we have to define PATH_MAX, spotted by
David Leach; ok dtucker@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/defines.h b/defines.h
index 7758bc37..d75d458f 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.119 2005/02/20 10:01:49 dtucker Exp $ */
+/* $Id: defines.h,v 1.120 2005/05/27 09:36:56 djm Exp $ */
/* Constants */
@@ -54,7 +54,11 @@ enum
# ifdef PATH_MAX
# define MAXPATHLEN PATH_MAX
# else /* PATH_MAX */
-# define MAXPATHLEN 64 /* Should be safe */
+# define MAXPATHLEN 64
+/* realpath uses a fixed buffer of size MAXPATHLEN, so force use of ours */
+# ifndef BROKEN_REALPATH
+# define BROKEN_REALPATH 1
+# endif /* BROKEN_REALPATH */
# endif /* PATH_MAX */
#endif /* MAXPATHLEN */