From aacf9fb6c9f6f364c8d1799b02f4d5fc0f63e98f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 31 Mar 2026 11:41:27 +0100 Subject: libreboot-utils: unified EINTR loop handling absolutely unified. Signed-off-by: Leah Rowe --- util/libreboot-utils/lib/mkhtemp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/libreboot-utils/lib/mkhtemp.c') diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c index 7a73befb..7589a410 100644 --- a/util/libreboot-utils/lib/mkhtemp.c +++ b/util/libreboot-utils/lib/mkhtemp.c @@ -624,7 +624,7 @@ mkhtemp_try_create(int dirfd, } #endif - *fd = openat2p(dirfd, fname_copy, + *fd = openat_on_eintr(dirfd, fname_copy, O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC | O_NOCTTY, 0600); @@ -648,7 +648,7 @@ mkhtemp_try_create(int dirfd, if (fd_verify_dir_identity(dirfd, st_dir_initial) < 0) goto err; - if ((*fd = openat2p(dirfd, fname_copy, + if ((*fd = openat_on_eintr(dirfd, fname_copy, O_RDONLY | O_DIRECTORY | O_CLOEXEC, 0)) < 0) goto err; @@ -662,7 +662,7 @@ mkhtemp_try_create(int dirfd, } - /* NOTE: openat2p and mkdirat_on_eintr + /* NOTE: openat_on_eintr and mkdirat_on_eintr * already handled EINTR/EAGAIN looping */ -- cgit v1.2.1