* grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
canonicalize file name before doing the rest.
This commit is contained in:
		
							parent
							
								
									7b83ca449b
								
							
						
					
					
						commit
						f7c4957068
					
				
					 2 changed files with 10 additions and 1 deletions
				
			
		|  | @ -524,11 +524,15 @@ grub_find_device (const char *dir, dev_t dev) | |||
| } | ||||
| 
 | ||||
| char ** | ||||
| grub_guess_root_devices (const char *dir) | ||||
| grub_guess_root_devices (const char *dir_in) | ||||
| { | ||||
|   char **os_dev = NULL; | ||||
|   struct stat st; | ||||
|   dev_t dev; | ||||
|   char *dir = canonicalize_file_name (dir_in); | ||||
| 
 | ||||
|   if (!dir) | ||||
|     grub_util_error (_("failed to get canonical path of `%s'"), dir_in); | ||||
| 
 | ||||
| #ifdef __linux__ | ||||
|   if (!os_dev) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue