]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: deal with kernel errno change if quota is not enabled
authorLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 10:52:57 +0000 (12:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 19:36:29 +0000 (21:36 +0200)
commit4b019d2f2d4b4dd691f92113f53cc65db683f3d9
treedd4529b8aa990160662959c9900fefef174ecb0b
parent548af942b8581a814240052d4e5665fbefd33fe6
tmpfiles: deal with kernel errno change if quota is not enabled

Old kernels returned EINVAL if quota was off but we tried to manipulate
it anyway. Since
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8a36e408d40606e21cd4e2dd9601004a67b14868
this changed: now ENOTCONN is returned. This of course is a kernel API
compat breakage, but let's not make a fuss and just map EINVAL to
ENOTCONN to make it recognizable the same way everywhere.

Fixes: #15896
src/basic/btrfs-util.c
src/tmpfiles/tmpfiles.c