From 2ab188f529b8fc322585198e37f8f9a9464d0aa0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 11 Apr 2002 09:50:11 +0000 Subject: [PATCH] Finally fix loader completely for IA64. efifs_stat() wasn't setting the S_IFREG bit for regular files. This caused the path search code to skip it when it finally did find the kernel (after the common/module.c buffer overrun bug was fixed) --- sys/boot/efi/libefi/efifs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/boot/efi/libefi/efifs.c b/sys/boot/efi/libefi/efifs.c index 767ce647b39f..d42bc71b952e 100644 --- a/sys/boot/efi/libefi/efifs.c +++ b/sys/boot/efi/libefi/efifs.c @@ -233,6 +233,8 @@ efifs_stat(struct open_file *f, struct stat *sb) sb->st_mode = S_IRUSR | S_IWUSR; if (info->Attribute & EFI_FILE_DIRECTORY) sb->st_mode |= S_IFDIR; + else + sb->st_mode |= S_IFREG; sb->st_size = info->FileSize; free(buf);