diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-21 17:13:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-21 21:41:32 +0100 |
commit | ce21ed5c6120e33dd3502b25237c721dbbea891a (patch) | |
tree | 81f3bfdb195ae74104450d8e1ff57df3f6c349d2 /src/basic/copy.c | |
parent | 71994cff31f2507429dc91550f73fd8e35646147 (diff) |
copy: a plain unlink() works here too
Diffstat (limited to 'src/basic/copy.c')
-rw-r--r-- | src/basic/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c index 6273ac9b47..e120b9eb4e 100644 --- a/src/basic/copy.c +++ b/src/basic/copy.c @@ -558,7 +558,7 @@ int copy_file_atomic(const char *from, const char *to, mode_t mode, unsigned cha } else r = rename_noreplace(AT_FDCWD, t, AT_FDCWD, to); if (r < 0) { - (void) unlink_noerrno(t); + (void) unlink(t); return r; } |