Thank you. I don't see renameat2 on my system, but this should be good for systems that have it.
Regards, Jorgen Harmse Sam’s Club Technology Phone 512.633.2226 jorgen.har...@samsclub.com On 3/23/18, 08:55, "Kamil Dudka" <kdu...@redhat.com> wrote: On Friday, March 23, 2018 2:00:01 PM CET Eric Blake wrote: > I don't know if mv exposes RENAME_NOREPLACE semantics yet, but it should > be taught to do so, where such semantics are available. mv was recently patched to use renameat2(..., RENAME_NOREPLACE): http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=v8.29-9-g29baf25aa Kamil