libreboot-utils: much stricter open() handling

abort on error, and do EINTR looping

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-28 08:09:14 +00:00
parent 03dd3c2894
commit 49cac232d8
3 changed files with 36 additions and 5 deletions
+1
View File
@@ -545,6 +545,7 @@ int fs_rename_at(int olddirfd, const char *old,
int newdirfd, const char *new);
int fs_open(const char *path, int flags);
void free_and_set_null(char **buf);
void open_on_eintr(char *path, int *fd, int flags, mode_t mode);
struct filesystem *rootfs(void);
int fs_resolve_at(int dirfd, const char *path, int flags);
int fs_next_component(const char **p,