diff options
author | jilles <jilles@FreeBSD.org> | 2014-06-06 13:37:40 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-06-06 13:37:40 +0000 |
commit | 83925746a3e67ab79613b86ee4d2703eaa191e19 (patch) | |
tree | 5085eb14158ef337772716b2714b8319bb6cd680 /sys/netinet/if_ether.c | |
parent | 2c6af1420a13bc7ad858b0c83fc17b06fb9d6bea (diff) | |
download | FreeBSD-src-83925746a3e67ab79613b86ee4d2703eaa191e19.zip FreeBSD-src-83925746a3e67ab79613b86ee4d2703eaa191e19.tar.gz |
MFC r264417: realpath(): Properly fail "." or ".." components after
non-directories.
If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..",
it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as
they should.
Also, put the check for non-directories after lstatting the previous
component instead of when the empty component (consecutive or trailing
slashes) is detected, saving an lstat() call and some lines of code.
PR: 82980
Diffstat (limited to 'sys/netinet/if_ether.c')
0 files changed, 0 insertions, 0 deletions