diff options
author | Jan Janssen <medhefgo@web.de> | 2021-10-26 12:17:31 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2021-11-04 18:37:07 +0100 |
commit | 785b5fcf5f692a1b3788cee2fb0f076ca78572c0 (patch) | |
tree | 8b75abc3bbce8265f978fb390723090e0c2f177d /src/boot/efi/util.c | |
parent | sd-boot: Move flags helpers to macro-fundamental.h (diff) | |
download | systemd-785b5fcf5f692a1b3788cee2fb0f076ca78572c0.tar.xz systemd-785b5fcf5f692a1b3788cee2fb0f076ca78572c0.zip |
sd-boot: Use FLAGS_SET
Diffstat (limited to '')
-rw-r--r-- | src/boot/efi/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index eb9745ce27..4d981ca7e5 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -741,7 +741,7 @@ EFI_STATUS open_directory( err = get_file_info_harder(dir, &file_info, NULL); if (EFI_ERROR(err)) return err; - if (!(file_info->Attribute & EFI_FILE_DIRECTORY)) + if (!FLAGS_SET(file_info->Attribute, EFI_FILE_DIRECTORY)) return EFI_LOAD_ERROR; *ret = TAKE_PTR(dir); |