]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/commit
MFC r240410:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Sep 2012 13:03:00 +0000 (13:03 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 18 Sep 2012 13:03:00 +0000 (13:03 +0000)
commit6c4f1d9e131457fa4881e792eef61d42d02c0da9
tree221f1bef89c5b0b5345d31a9f727006757d43468
parent984edfe75854853d38f06dfb952c6d7bfd9da268
MFC r240410:

  Avoid mapping ENOENT to ENOTDIR for non-existent path components.

  The ENOTDIR mapping was introduced in r235266 for kern/128933 based on
  an interpretation of the somewhat ambiguous language in the POSIX realpath
  specification.  The interpretation is inconsistent with Solaris and Linux,
  a regression from 9.0, and does not appear to be permitted by the
  description of ENOTDIR:

       20 ENOTDIR Not a directory.  A component of the specified pathname
               existed, but it was not a directory, when a directory was
               expected.

PR: standards/171577
Approved by: re
Sponsored by: ADARA Networks

git-svn-id: svn://svn.freebsd.org/base/releng/9.1@240647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdlib/realpath.c