mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Handle empty dir passed to grub_find_root_device_from_mountinfo; fixes grub-mkrelpath on btrfs subvolumes.
This commit is contained in:
1 parent
bd1a414714
commit
8c2c4ff2f5
1 file changed
+2
@@ -111,6 +111,8 @@ grub_find_root_device_from_mountinfo (const char *dir, char **relroot)
|
|||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
|
|
||||||
|
if (! *dir)
|
||||||
|
dir = "/";
|
||||||
if (relroot)
|
if (relroot)
|
||||||
*relroot = NULL;
|
*relroot = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user