[openssh-commits] [openssh] 01/05: Use sftp_realpath if no native realpath.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 1 18:28:08 AEDT 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 79d46de9fbea0f3c0e8ae7cf84effaba089071b0
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Nov 1 15:22:32 2019 +1100

    Use sftp_realpath if no native realpath.
---
 configure.ac              | 1 +
 openbsd-compat/bsd-misc.h | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 8489384f..a9cbfed0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1783,6 +1783,7 @@ AC_CHECK_FUNCS([ \
 	raise \
 	readpassphrase \
 	reallocarray \
+	realpath \
 	recvmsg \
 	recallocarray \
 	rresvport_af \
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 5a369d9d..429ade04 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -182,4 +182,8 @@ int flock(int, int);
 struct tm *localtime_r(const time_t *, struct tm *);
 #endif
 
+#ifndef HAVE_REALPATH
+#define realpath(x, y)	(sftp_realpath((x), (y))
+#endif
+
 #endif /* _BSD_MISC_H */

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list