chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
copy: a plain unlink() works here too
[elogind.git]
/
src
/
basic
/
copy.c
diff --git
a/src/basic/copy.c
b/src/basic/copy.c
index deda8615b93a80f153af3e145652b33168dbc806..37212be228de1e2e9c7e0d6bc2abf89091b4e9ca 100644
(file)
--- a/
src/basic/copy.c
+++ b/
src/basic/copy.c
@@
-559,7
+559,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;
}