]> git.ipfire.org Git - thirdparty/systemd.git/commit
chase: mask away CHASE_MUST_BE_REGULAR in chase_openat()
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Sep 2025 12:12:37 +0000 (14:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Sep 2025 07:36:44 +0000 (09:36 +0200)
commitbe1117f712904b6a16b05db946d71e09ee3a5519
tree4eedbc667c21a674944949f87c11629d50c0ddbe
parent0c25f8fd0ba410ed15ab1f31c7dd374f85d86a26
chase: mask away CHASE_MUST_BE_REGULAR in chase_openat()

We pin the parent directory of the specified directory via CHASE_PARENT,
but if we do that we really should mask off CHASE_MUST_BE_REGULAR,
because a parent dir of course is a dir, nothing else. The
CHASE_MUST_BE_REGULAR after all should apply to the file created in that
dir, not to the parent.
src/basic/chase.c