]> git.ipfire.org Git - thirdparty/systemd.git/commit
find-esp: Add openat() like helpers that operate on fds 27067/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 22 Dec 2022 13:59:56 +0000 (14:59 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 1 Apr 2023 12:29:29 +0000 (14:29 +0200)
commit63105f33edad423691e2d53bf7071f99c83799ba
treef9e1725f26fe4eb1ca8a7d707b298ed6d19c97d3
parent6eec59f9cc325a5491309a32aadc8fa0722992a1
find-esp: Add openat() like helpers that operate on fds

We also rework the internals of find-esp to work on directory file
descriptors instead of absolute paths and do a lot of general cleanups.

By passing the parent directory file descriptor to verify_fsroot_dir()
along with the name of the directory we're operating on, we can get rid
of the fallback that goes via path to open the parent directory if '..'
fails due to permission errors.
src/shared/find-esp.c
src/shared/find-esp.h