]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: fix fsck 25266/head
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Nov 2022 17:26:42 +0000 (18:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Nov 2022 17:53:36 +0000 (18:53 +0100)
commitf8ab781223bcb0330ee4499b879a62e84fee313e
tree88e0a398dda4e3a38ce6424da670211b753aa38a
parent981cfbe046297a18f2cb115ef81202f3bd68d2a3
dissect: fix fsck

Since f7725647bb41c3398a867f139efe526efe8aa1b3 when dissecting a disk
image we operate with fds to the device nodes in question wherever we
can. This includes when we fork off fsck, where we pass a /proc/self/fd/
path as argument. This only works if we keep that fd open however and
disable O_CLOEXEC on the fd. Hence do so, and fix fsck this way.

(Without this, all fsck will fail, since the fd path is invalid)
src/shared/dissect-image.c