projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce67bf3
)
coredump: port over code to new LINK_TMPFILE_SYNC flag
author
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Jun 2023 07:49:35 +0000
(09:49 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Jun 2023 07:49:35 +0000
(09:49 +0200)
src/coredump/coredump.c
patch
|
blob
|
history
diff --git
a/src/coredump/coredump.c
b/src/coredump/coredump.c
index ac1c26e82856ff702e3081d411a3f136768a2457..0fe19894e53025e66702e2ba3be46ce801caa03a 100644
(file)
--- a/
src/coredump/coredump.c
+++ b/
src/coredump/coredump.c
@@
-269,11
+269,7
@@
static int fix_permissions(
(void) fix_acl(fd, uid, allow_user);
(void) fix_xattr(fd, context);
- r = fsync_full(fd);
- if (r < 0)
- return log_error_errno(r, "Failed to sync coredump %s: %m", coredump_tmpfile_name(filename));
-
- r = link_tmpfile(fd, filename, target, /* flags= */ 0);
+ r = link_tmpfile(fd, filename, target, LINK_TMPFILE_SYNC);
if (r < 0)
return log_error_errno(r, "Failed to move coredump %s into place: %m", target);