]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
Check if realpath works on nonexistent files.
authorDarren Tucker <dtucker@zip.com.au>
Fri, 17 Jul 2015 02:52:34 +0000 (12:52 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Fri, 17 Jul 2015 02:58:02 +0000 (12:58 +1000)
commitd3e2aee41487d55b8d7d40f538b84ff1db7989bc
treecbe43672e70bc3fdcaf47c311dfabc8d282cacd5
parent25b14610dab655646a109db5ef8cb4c4bf2a48a0
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@
configure.ac
openbsd-compat/openbsd-compat.h