]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Add comments to code for commit d313218
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 7 Nov 2015 10:01:23 +0000 (13:01 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 7 Nov 2015 10:01:23 +0000 (13:01 +0300)
grub-core/kern/file.c

index 3367485fb4d373661a09a2bb899d9fe95149d3d8..668f8930b1963d8476505beb29346f226228d5cb 100644 (file)
@@ -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")