summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-04-11 09:50:11 +0000
committerpeter <peter@FreeBSD.org>2002-04-11 09:50:11 +0000
commit63071c12c89590f82b59e00f581c33b3a2eba6e7 (patch)
tree235b7696ff09194682877367080030566dca0ca0 /sys/boot
parent4c6efe7dae78c40a2aa1b7e226611b6bae31aeea (diff)
downloadFreeBSD-src-63071c12c89590f82b59e00f581c33b3a2eba6e7.zip
FreeBSD-src-63071c12c89590f82b59e00f581c33b3a2eba6e7.tar.gz
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)
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/efi/libefi/efifs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/efi/libefi/efifs.c b/sys/boot/efi/libefi/efifs.c
index 767ce64..d42bc71 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);
OpenPOWER on IntegriCloud