coredump: never write more than the configured processing size limit to disk

This commit is contained in:
Lennart Poettering
2014-06-23 16:28:05 +02:00
parent 81cef14fce
commit 93240d3aba
5 changed files with 32 additions and 9 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ static int make_backup(const char *x) {
if (dst < 0)
return dst;
r = copy_bytes(src, dst);
r = copy_bytes(src, dst, (off_t) -1);
if (r < 0)
goto fail;