]> 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 16:50:24 +0000 (18:50 +0200)
commitf3b185e5221fe2edbee9888fd781396385e0ec39
tree42705a3708da617744382d9cafe734bbda199bbb
parent475ecbad15943d6831fc508ce72016d581763b2b
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