Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107296564
D42213.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
607 B
Referenced Files
None
Subscribers
None
D42213.diff
View Options
diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -1101,8 +1101,11 @@
/*
* find_dev can operate without any efi variables
*/
- if (!efi_variables_supported() && !opts.find_dev)
- errx(1, "efi variables not supported on this system. root? kldload efirt?");
+ if (!efi_variables_supported() && !opts.find_dev) {
+ if (errno == EACCES && geteuid() != 0)
+ errx(1, "must be run as root");
+ errx(1, "efi variables not supported on this system. kldload efirt?");
+ }
read_vars();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 3:56 AM (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15775877
Default Alt Text
D42213.diff (607 B)
Attached To
Mode
D42213: efibootmgr: provide explicit error message if run as non-root
Attached
Detach File
Event Timeline
Log In to Comment