freebsd-src/bin/ln
Enji Cooper 63bd650f4b ln(1): fix -F behavior
When '-F' option is used, the target directory needs to be unlinked.
Currently, the modified target ("target/source") is being unlinked, and
since it doesn't yet exist, the original target isn't removed.
This is fixed by skipping the block where target is modified to
"target/source" when '-F' option is set.
Hence, a symbolic link (with the same name as of the original target) to
the source_file is produced.

Update the test for ln(1) to reflect fix for option '-F'

MFC after:	1 month
PR:		219943
Differential Revision:	D11167
Submitted by:	shivansh
Sponsored by:	Google (GSoC 2017)
2017-06-20 20:46:08 +00:00
..
tests Style fixes: clean up leading whitespace (8 single column spaces -> \t) 2017-06-12 16:53:42 +00:00
ln.1 ln(1): wordsmith -F option description 2017-06-12 16:43:29 +00:00
ln.c ln(1): fix -F behavior 2017-06-20 20:46:08 +00:00
Makefile Add tests for ln(1) 2017-06-08 19:09:55 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
symlink.7 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00