]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rename: notice when expression and replacement are the same string
authorSami Kerola <kerolasa@iki.fi>
Sat, 20 May 2017 09:41:23 +0000 (10:41 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 10:17:27 +0000 (12:17 +0200)
commit9f430c8a5ba842465ac72b3a101cb66ba3848959
treef17eb31fc7825fe423899a85618e32724a20ecac
parente228735e18cd92f005d8343225867faf7d5cc7b8
rename: notice when expression and replacement are the same string

The rename(1) can exit early when replace expression and replacement are
identical string.  It is also appropriate to change return value in this
case to 'nothing was renamed'.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/rename.c