summaryrefslogtreecommitdiffstats
path: root/etc/namedb
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-21 21:57:03 +0000
committerjilles <jilles@FreeBSD.org>2010-04-21 21:57:03 +0000
commit1a724f1dcaab30bf93e2b9f14ba5cb859e401086 (patch)
tree9b1536d2aaea25358ac97eadee8361f3d7c641c7 /etc/namedb
parent31257c45676b6404dfd580abbffec543f3a32962 (diff)
downloadFreeBSD-src-1a724f1dcaab30bf93e2b9f14ba5cb859e401086.zip
FreeBSD-src-1a724f1dcaab30bf93e2b9f14ba5cb859e401086.tar.gz
ln: Allow a trailing slash when creating a link to a directory.
In the 'ln source... directory' synopsis, the basename of each source determines the name of the created link. Determine this using basename(3) instead of strrchr(..., '/') which is incorrect if the pathname ends in a slash. The patch is somewhat changed to allow for basename(3) implementations that change the passed pathname, and to fix the -w option's checking also. The code to compare directory entries only applies to hard links, which cannot be created to directories using ln. Example: ln -s /etc/defaults/ /tmp This should create a symlink named defaults. PR: 121568 Submitted by: Ighighi MFC after: 1 week
Diffstat (limited to 'etc/namedb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud