openssh/openbsd-compat
Darren Tucker d3e2aee414 Check if realpath works on nonexistent files.
On some platforms the native realpath doesn't work with non-existent
files (this is actually specified in some versions of POSIX), however
the sftp spec says its realpath with "canonicalize any given path name".
On those platforms, use realpath from the compat library.

In addition, when compiling with -DFORTIFY_SOURCE, glibc redefines
the realpath symbol to the checked version, so redefine ours to
something else so we pick up the compat version we want.

bz#2428, ok djm@
2015-07-17 12:58:02 +10:00
..
regress - (dtucker) [entropy.c openbsd-compat/openssl-compat.{c,h} 2014-06-17 23:06:07 +10:00
.cvsignore
arc4random.c support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
base64.c
base64.h
basename.c
bcrypt_pbkdf.c upstream commit 2015-05-10 11:57:31 +10:00
bindresvport.c
blf.h - [configure.ac openbsd-compat/Makefile.in openbsd-compat/bcrypt_pbkdf.c] 2013-12-07 11:51:51 +11:00
blowfish.c Wrap blf.h include in ifdef. From FreeBSD. 2015-04-07 10:47:15 +10:00
bsd-asprintf.c
bsd-closefrom.c
bsd-cray.c
bsd-cray.h
bsd-cygwin_util.c Replace strcpy with strlcpy. 2015-06-02 20:15:26 +10:00
bsd-cygwin_util.h - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c] 2014-05-27 14:34:42 +10:00
bsd-getpeereid.c
bsd-misc.c Remove dependency on xmalloc. 2015-02-26 04:12:58 +11:00
bsd-misc.h Use do{}while(0) for no-op functions. 2015-04-07 10:48:04 +10:00
bsd-nextstep.c
bsd-nextstep.h
bsd-openpty.c
bsd-poll.c - (dtucker) [openbsd-compat/bsd-poll.c] Don't bother checking for non-NULL 2014-02-06 10:44:13 +11:00
bsd-poll.h
bsd-setres_id.c - (djm) [openbsd-compat/bsd-setres_id.c] Missing header; from Corinna 2013-12-08 08:23:08 +11:00
bsd-setres_id.h - (dtucker) [uidswap.c openbsd-compat/Makefile.in 2012-11-05 17:04:37 +11:00
bsd-snprintf.c - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/ 2014-08-22 17:48:27 +10:00
bsd-statvfs.c - (dtucker) [configure.ac openbsd-compat/bsd-statvfs.c 2014-01-17 18:10:58 +11:00
bsd-statvfs.h - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we 2014-01-17 18:48:22 +11:00
bsd-waitpid.c
bsd-waitpid.h
chacha_private.h - (djm) [openbsd-compat/arc4random.c openbsd-compat/chacha_private.h] Pull 2013-10-09 10:42:32 +11:00
charclass.h
daemon.c
dirname.c
explicit_bzero.c - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero() 2014-08-27 06:32:01 +10:00
fake-rfc2553.c
fake-rfc2553.h Add AI_NUMERICSERV to fake-rfc2553. 2015-02-24 13:43:57 +11:00
fmt_scaled.c
getcwd.c - (djm) [openbsd-compat/getcwd.c] Remove OpenBSD rcsid marker since we no 2011-09-23 10:40:50 +10:00
getgrouplist.c - (djm) [openbsd-compat/getgrouplist.c] Remove OpenBSD rcsid marker: the 2011-09-23 10:44:03 +10:00
getopt_long.c - (dtucker) [openbsd-compat/getopt.h openbsd-compat/getopt_long.c 2013-05-10 18:08:49 +10:00
getopt.h - (dtucker) [openbsd-compat/getopt.h] Remove unneeded bits. 2013-05-17 16:03:48 +10:00
getrrsetbyname-ldns.c avoid uninitialised free of ldns_res 2014-12-30 08:16:11 +11:00
getrrsetbyname.c - (dtucker) [INSTALL LICENCE configure.ac openbsd-compat/Makefile.in 2011-11-04 11:25:24 +11:00
getrrsetbyname.h
glob.c - djm@cvs.openbsd.org 2011/09/22 06:27:29 2011-09-22 21:22:21 +10:00
glob.h
inet_aton.c
inet_ntoa.c
inet_ntop.c - otto@cvs.openbsd.org 2008/12/09 19:38:38 2011-09-23 11:16:09 +10:00
kludge-fd_set.c - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c] 2014-10-01 09:43:07 +10:00
Makefile.in support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
md5.c support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
md5.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
mktemp.c - (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm 2011-10-01 18:46:12 +10:00
openbsd-compat.h Check if realpath works on nonexistent files. 2015-07-17 12:58:02 +10:00
openssl-compat.c support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
openssl-compat.h support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
port-aix.c - (dtucker) [M auth-chall.c auth-krb5.c auth-pam.c cipher-aes.c cipher-ctr.c 2013-06-02 08:07:31 +10:00
port-aix.h
port-irix.c
port-irix.h
port-linux.c - (dtucker) [M auth-chall.c auth-krb5.c auth-pam.c cipher-aes.c cipher-ctr.c 2013-06-02 08:07:31 +10:00
port-linux.h - (djm) [configure.ac Makefile.in ssh.c openbsd-compat/port-linux.c 2011-01-25 12:16:15 +11:00
port-solaris.c
port-solaris.h
port-tun.c kludge around tun API mismatch betterer 2015-01-15 03:08:29 +11:00
port-tun.h kludge around tun API mismatch betterer 2015-01-15 03:08:29 +11:00
port-uw.c - (tim) [openbsd-compat/port-uw.c] Include misc.h for fwd_opts, used 2014-07-18 20:00:11 -07:00
port-uw.h
pwcache.c
readpassphrase.c Move definition of _NSIG. 2015-02-25 13:40:45 +11:00
readpassphrase.h
reallocarray.c Wrap stdint.h includes in ifdefs. 2015-02-23 03:07:24 +11:00
realpath.c
rmd160.c Wrap endian.h include inside ifdef (bz#2370). 2015-04-17 10:40:23 +10:00
rmd160.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
rresvport.c
setenv.c - (djm) [openbsd-compat/setenv.c] Forklift upgrade, including inclusion 2011-09-23 11:26:34 +10:00
setproctitle.c - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a 2014-01-22 16:30:15 +11:00
sha1.c support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
sha1.h support --without-openssl at configure time 2015-01-14 21:48:18 +11:00
sha2.c support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
sha2.h support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
sigact.c
sigact.h
strlcat.c
strlcpy.c - millert@cvs.openbsd.org 2006/05/05 15:27:38 2011-09-23 10:38:11 +10:00
strmode.c
strnlen.c - (dtucker) [configure.ac openbsd-compat/Makefile.in 2011-09-29 23:17:18 +10:00
strptime.c
strsep.c
strtoll.c
strtonum.c
strtoul.c
strtoull.c - (dtucker) [configure.ac openbsd-compat/Makefile.in openbsd-compat/strtoull.c 2013-02-15 12:13:01 +11:00
sys-queue.h - (djm) [openbsd-compat/sys-queue.h] Sync with OpenBSD to get 2012-12-03 09:37:56 +11:00
sys-tree.h - (dtucker) [configure.ac openbsd-compat/sys-tree.h] Test if compiler allows 2013-02-08 11:50:09 +11:00
timingsafe_bcmp.c
vis.c - (djm) [configure.ac log.c scp.c sshconnect2.c openbsd-compat/vis.c] 2013-03-20 12:55:14 +11:00
vis.h - (djm) [configure.ac log.c scp.c sshconnect2.c openbsd-compat/vis.c] 2013-03-20 12:55:14 +11:00
xcrypt.c support --without-openssl at configure time 2015-01-15 02:28:36 +11:00
xmmap.c