summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-07-08 13:38:39 +1000
committerDamien Miller <djm@mindrot.org>2019-07-08 13:38:39 +1000
commit4efe1adf05ee5d3fce44320fcff68735891f4ee6 (patch)
tree49b902aab121cc5c7c3b8dd166556036fee4c175 /defines.h
parent696fb4298e80f2ebcd188986a91b49af3b7ca14c (diff)
remove realpath() compat replacement
We shipped a BSD implementation of realpath() because sftp-server depended on its behaviour. OpenBSD is now moving to a more strictly POSIX-compliant realpath(2), so sftp-server now unconditionally requires its own BSD-style realpath implementation. As such, there is no need to carry another independant implementation in openbsd-compat. ok dtucker@
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/defines.h b/defines.h
index 8f4213062..46f88a431 100644
--- a/defines.h
+++ b/defines.h
@@ -108,10 +108,6 @@ enum
108# define MAXPATHLEN PATH_MAX 108# define MAXPATHLEN PATH_MAX
109# else /* PATH_MAX */ 109# else /* PATH_MAX */
110# define MAXPATHLEN 64 110# define MAXPATHLEN 64
111/* realpath uses a fixed buffer of size MAXPATHLEN, so force use of ours */
112# ifndef BROKEN_REALPATH
113# define BROKEN_REALPATH 1
114# endif /* BROKEN_REALPATH */
115# endif /* PATH_MAX */ 111# endif /* PATH_MAX */
116#endif /* MAXPATHLEN */ 112#endif /* MAXPATHLEN */
117 113