]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rename: fix/reverse the semantics of --no-overwrite in --symlink mode
authorG.raud Meyer <graud@gmx.com>
Sat, 24 Mar 2018 22:53:21 +0000 (23:53 +0100)
committerG.raud Meyer <graud@gmx.com>
Tue, 27 Mar 2018 12:48:00 +0000 (14:48 +0200)
commit5bb927006fca412d4beaf9fb5e225e9d5444ac3a
tree680f40046947a20d5935b0ac46974950eee01037
parent867c15ddb8cfe77cb828da0e948b847779136e56
rename: fix/reverse the semantics of --no-overwrite in --symlink mode

The previous behaviour was to overwrite a symlink only when the new
destination did not exist, i.e. to avoid creating a symlink to an
existing file!  It had not been documented and it seems
counter-intuitive to me.  So the new behavior protects symlinks pointing
to existing targets from being changed.

Also update manpage to document this mode.
misc-utils/rename.1
misc-utils/rename.c