chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2095ac
)
copy: a plain unlink() works here too
author
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Feb 2017 16:13:28 +0000
(17:13 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000
(17:58 +0200)
src/basic/copy.c
patch
|
blob
|
history
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;
}