Add comments to code for commit d313218
This commit is contained in:
parent
349a381df0
commit
c1fbc26203
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ grub_file_open (const char *name)
|
|||
|
||||
file->device = device;
|
||||
|
||||
/* In case of relative pathnames and non-Unix systems (like Windows)
|
||||
* name of host files may not start with `/'. Blocklists for host files
|
||||
* are meaningless as well (for a start, host disk does not allow any direct
|
||||
* access - it is just a marker). So skip host disk in this case.
|
||||
*/
|
||||
if (device->disk && file_name[0] != '/'
|
||||
#if defined(GRUB_UTIL) || defined(GRUB_MACHINE_EMU)
|
||||
&& grub_strcmp (device->disk->name, "host")
|
||||
|
|
Loading…
Reference in a new issue