]> git.ipfire.org Git - thirdparty/systemd.git/commit
fs-util: optimize xopenat(XAT_FDROOT, ...) a bit
authorMike Yuan <me@yhndnzj.com>
Sun, 18 Jan 2026 23:53:48 +0000 (00:53 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 19 Jan 2026 12:33:27 +0000 (13:33 +0100)
commit02bf2b7cdfb26af99e13dded572b1ff44f04049a
tree281dfe791983829766c04b9f4802e3f807943923
parent9b906ae48ee658ac4aa425b25933efe87c2477e8
fs-util: optimize xopenat(XAT_FDROOT, ...) a bit

Follow-up for ef582ab201c2942813960ad3c451df3642d85558

* Open / with O_PATH
* Shortcut to fd_reopen() directly if path is empty
src/basic/fs-util.c