]> git.ipfire.org Git - thirdparty/systemd.git/commit
fs-util: add XO_REGULAR flag for xopenat()
authorLennart Poettering <lennart@poettering.net>
Sat, 21 Dec 2024 11:54:53 +0000 (12:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jan 2025 22:20:09 +0000 (23:20 +0100)
commitdffafa47ae77e279392d91aef9f676718596e574
treed88f0eb63abec36246e3acea2f89d924ced738e8
parent2144b5dccf51a96e3aadbeceae859915a95a81b2
fs-util: add XO_REGULAR flag for xopenat()

If this flag is set we guarantee that the fd returned refers to a
regular file. If the file exists and is not one, fails.
src/basic/fs-util.c
src/basic/fs-util.h
src/test/test-fs-util.c