summaryrefslogtreecommitdiff
path: root/src/journal/coredump.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-15 20:33:35 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-15 20:33:35 +0200
commit78ed65ac8dd05041f08ba8b089e1e87445a0905f (patch)
treee62a030ceb75b3d777c57793bec55cb7a220f7df /src/journal/coredump.c
parentdd5da693ab4579c619017b4aac2a234d4b7a3ea7 (diff)
parent770b5ce4fc31a336a41e81381c229da725ef0cfa (diff)
Merge pull request #212 from poettering/gc-machine-snapshots
automatically remove old machine shapshots at boot
Diffstat (limited to 'src/journal/coredump.c')
-rw-r--r--src/journal/coredump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index 1c747aa2b4..62483a2a05 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -301,7 +301,7 @@ static int save_external_coredump(
if (r < 0)
return log_error_errno(r, "Failed to determine coredump file name: %m");
- r = tempfn_random(fn, &tmp);
+ r = tempfn_random(fn, NULL, &tmp);
if (r < 0)
return log_error_errno(r, "Failed to determine temporary file name: %m");
@@ -347,7 +347,7 @@ static int save_external_coredump(
goto uncompressed;
}
- r = tempfn_random(fn_compressed, &tmp_compressed);
+ r = tempfn_random(fn_compressed, NULL, &tmp_compressed);
if (r < 0) {
log_error_errno(r, "Failed to determine temporary file name for %s: %m", fn_compressed);
goto uncompressed;