]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: use fstatvfs to check the available space
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 17 Jan 2023 08:00:00 +0000 (08:00 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jan 2023 21:22:12 +0000 (22:22 +0100)
commit8facac5fdd227ff59827c8c7f65bd01fd402b465
tree2c0376e96219dbbde9809120460e4002dab64d99
parentf591cf66f0fb1024f68e23fdd9c024eb41dd3a4a
coredump: use fstatvfs to check the available space

Given that we already have the file descriptor opened for writing, it
would make sense to call fstatvfs with that file descriptor rather than
statvfs with the directory path that was used to open that descriptor.
src/coredump/coredump.c