diff options
author | jkim <jkim@FreeBSD.org> | 2015-02-27 19:05:23 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2015-02-27 19:05:23 +0000 |
commit | 1909a3ff8da7b144996d9fda1b0b411dbf3bdc58 (patch) | |
tree | 8b992320e05df528d1cd4bc87f2e98294b66acba /contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c | |
parent | 3c61aa79bfcaf99762f556d9ed3d18ee8d756bf2 (diff) | |
download | FreeBSD-src-1909a3ff8da7b144996d9fda1b0b411dbf3bdc58.zip FreeBSD-src-1909a3ff8da7b144996d9fda1b0b411dbf3bdc58.tar.gz |
When a file is executed and the path starts with `/', AT_EXECPATH is set
without any translation. If the file is a symbolic link, $ORIGIN may not be
expanded to the actual origin. Use realpath(3) to properly expand $ORIGIN
to its absolute path.
Reviewed by: kib
MFC after: 1 week
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c')
0 files changed, 0 insertions, 0 deletions