]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rename: check source file access early
authorG.raud Meyer <graud@gmx.com>
Thu, 29 Mar 2018 11:28:10 +0000 (13:28 +0200)
committerG.raud Meyer <graud@gmx.com>
Mon, 9 Apr 2018 12:37:56 +0000 (14:37 +0200)
commit5454df9c3110f7742500e5d2af1ea300924c0120
tree171d965d22097e8c0e24a7e7bfc9cc50b0d91ba0
parent0849ff36605588a7ab7892ab2aae59d73290e225
rename: check source file access early

This change makes rename detect inexisting files given on the command
line and consider them faliures.  This is particularly useful with
--no-act (to detect extraneous arguments).

It also prevents skipping non existing files (when the modified name
happens to exist).  This makes --verbose not print skipping messages of
false positives (the access error is printed instead).
misc-utils/rename.c