diff options
author | Sami Kerola | 2017-12-03 13:51:15 +0100 |
---|---|---|
committer | Karel Zak | 2017-12-04 13:04:12 +0100 |
commit | 378d58abb1c0d417dc9d4341e9852c27dd475dd7 (patch) | |
tree | 349dcefade04a385d619bfbfece095b6e4c128be /tests/expected | |
parent | vipw: do not let editor to inherit open file descriptors (diff) | |
download | kernel-qcow2-util-linux-378d58abb1c0d417dc9d4341e9852c27dd475dd7.tar.gz kernel-qcow2-util-linux-378d58abb1c0d417dc9d4341e9852c27dd475dd7.tar.xz kernel-qcow2-util-linux-378d58abb1c0d417dc9d4341e9852c27dd475dd7.zip |
rename: use access(3) to check if a file exists
This is more lightweight than calling stat(3). In same go add a regression
test to ensure changes like this will not break --no-overwrite option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/expected')
-rw-r--r-- | tests/expected/rename/overwrite | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/expected/rename/overwrite b/tests/expected/rename/overwrite new file mode 100644 index 000000000..b16f799c3 --- /dev/null +++ b/tests/expected/rename/overwrite @@ -0,0 +1 @@ +Skipping existing file: `rename_to' |