Projects
openEuler:Mainline
grub2
_service:tar_scm:grub2-menu-unrestricted.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:grub2-menu-unrestricted.patch of Package grub2
--- a/grub-core/normal/menu.c +++ b/grub-core/normal/menu.c @@ -212,7 +212,17 @@ grub_size_t sz = 0; if (entry->restricted) - err = grub_auth_check_authentication (entry->users); + { + int auth_check = 1; + if (entry->users && entry->users[0] == 0) + { + const char *unr = grub_env_get ("unrestricted_menu"); + if (unr && (unr[0] == '1' || unr[0] == 'y')) + auth_check = 0; + } + if (auth_check) + err = grub_auth_check_authentication (entry->users); + } if (err) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.