]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tmpfiles/tmpfiles.c
tmpfiles: fix borked assert
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Jul 2021 14:41:28 +0000 (16:41 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 6 Jul 2021 19:05:00 +0000 (20:05 +0100)
commitb4b0f87c6275dde32769c2e75231caa1d4c21f9b
treecf6ce9a4b764bed45c0c205d1526a7e4b37e91e6
parent48e5ef14af5ade97b0f7491c63443778c7602c43
tmpfiles: fix borked assert

It seems that fd_set_perms() is always called after checking that
fd >= 0 (also when called as action() in glob_item_recursively()),
so it seems that the assertion really came from fd==0.

Fixes #20140.

Also three other similar cases are updated.
src/tmpfiles/tmpfiles.c