Module Name: src
Committed By: simonb
Date: Mon Dec 27 12:19:27 UTC 2021
Modified Files:
src/sys/arch/i386/stand/efiboot: devopen.c
Log Message:
Revert rev 1.12 of devopen.c. This had the unintented side effect
of breaking opens on non-root filesystems (eg trying to open/read
"esp:/EFI/NetBSD/boot.cfg" on the EFI system partition).
Ok manu@. Original problem to be re-addressed.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/i386/stand/efiboot/devopen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/efiboot/devopen.c
diff -u src/sys/arch/i386/stand/efiboot/devopen.c:1.12 src/sys/arch/i386/stand/efiboot/devopen.c:1.13
--- src/sys/arch/i386/stand/efiboot/devopen.c:1.12 Thu Nov 18 16:18:13 2021
+++ src/sys/arch/i386/stand/efiboot/devopen.c Mon Dec 27 12:19:27 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: devopen.c,v 1.12 2021/11/18 16:18:13 manu Exp $ */
+/* $NetBSD: devopen.c,v 1.13 2021/12/27 12:19:27 simonb Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -288,9 +288,8 @@ neterr:
* biosdisk
*/
if (strcmp(devname, "esp") == 0) {
- const char *part_name = NULL;
bios2dev(boot_biosdev, boot_biossector, &devname, &unit,
- &partition, &part_name);
+ &partition, NULL);
if (efidisk_get_efi_system_partition(boot_biosdev, &partition))
return ENXIO;
}