]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm: use xopendirat() where appropriate
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 16:30:49 +0000 (18:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Apr 2022 12:41:05 +0000 (14:41 +0200)
commit7b6d16837634eccfab6855af2be593d63f4a644b
treece7d61834dc0f6a3b47bb62035ee6960a871bf9f
parent9117d94b9a38a2d47500551fe3c6251f3bf285c0
udevadm: use xopendirat() where appropriate

And while we are at it, let's use more appropriate open flags.

O_NONBLOCk is pointless in combination with O_NOFOLLOW.

O_NOFOLLOW makes a ton of sense otoh, since the inode is supposed to be
a dir, we just checked.

THe other flags are implied by xopendirat()
src/udev/udevadm-info.c