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)
This commit is contained in:
Peter Wemm 2002-04-11 09:50:11 +00:00
parent f11aa8f5ca
commit 2ab188f529
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94418

View File

@ -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);