diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-14 22:40:49 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 08:04:09 +0100 |
commit | 7c248223ebafb9bfde9af978cd1ccfc57dcced26 (patch) | |
tree | 228bcda6699a2ae88ad01fd1f5f024f2b5d7b0a0 /src/boot/bootctl.c | |
parent | macro: add new helper RET_NERRNO() (diff) | |
download | systemd-7c248223ebafb9bfde9af978cd1ccfc57dcced26.tar.xz systemd-7c248223ebafb9bfde9af978cd1ccfc57dcced26.zip |
tree-wide: use new RET_NERRNO() helper at various places
Diffstat (limited to 'src/boot/bootctl.c')
-rw-r--r-- | src/boot/bootctl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 0dc19c4bb6..c19a51de62 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -335,10 +335,7 @@ static int boot_entry_file_check(const char *root, const char *p) { if (!path) return log_oom(); - if (access(path, F_OK) < 0) - return -errno; - - return 0; + return RET_NERRNO(access(path, F_OK)); } static void boot_entry_file_list(const char *field, const char *root, const char *p, int *ret_status) { |