diff options
author | peter <peter@FreeBSD.org> | 2002-04-11 09:50:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-04-11 09:50:11 +0000 |
commit | 63071c12c89590f82b59e00f581c33b3a2eba6e7 (patch) | |
tree | 235b7696ff09194682877367080030566dca0ca0 /sys/boot/efi | |
parent | 4c6efe7dae78c40a2aa1b7e226611b6bae31aeea (diff) | |
download | FreeBSD-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/efi')
-rw-r--r-- | sys/boot/efi/libefi/efifs.c | 2 |
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); |