]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r240410:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Sep 2012 02:52:19 +0000 (02:52 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 15 Sep 2012 02:52:19 +0000 (02:52 +0000)
commita6b22e24eb253e0c60dc8b8f272e9669a39cacb7
treed4a4cf6a0c472f2d4e538198b54750a2eabf4484
parenta6675995de9a2fb22a5f05c8ab5180838af25003
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

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