On 09/12/2012 06:38 AM, Ed Maste wrote: > Should ENOTDIR be a permissible errno for this test?
I don't see why. It's not called out in the GNU documentation for canonicalize_file_name, and the POSIX documentation for realpath does not seem to allow ENOTDIR for the similar situation with realpath. Why is the code returning ENOTDIR here?