libc/realpath: Better POSIX conformance regarding ENOENT and ENOTDIR.
authorSascha Wildner <saw@online.de>
Wed, 18 Mar 2015 18:32:04 +0000 (19:32 +0100)
committerSascha Wildner <saw@online.de>
Wed, 18 Mar 2015 18:32:04 +0000 (19:32 +0100)
commit2fa2d2a8783950032565a0f5b5e67b978f857ce6
treee98e7f6abf6f5460381c198c8e909c11e12026cb
parenta71cf17e72848edc53556fbd50f1a19c712cb251
libc/realpath: Better POSIX conformance regarding ENOENT and ENOTDIR.

This fixes the "Test keywords with arguments" test of pkg(8), too.

Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
Fix-pointed-out-by: bapt@freebsd
Taken-from:         FreeBSD
lib/libc/stdlib/realpath.3
lib/libc/stdlib/realpath.c