* util/grub-mount.c (argp_parser): Accept relative pathes.
* util/grub-fstest.c (argp_parser): Likewise.
This commit is contained in:
parent
111c17782a
commit
bc108a4a8a
3 changed files with 7 additions and 12 deletions
|
@ -489,13 +489,8 @@ argp_parser (int key, char *arg, struct argp_state *state)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (arg[0] != '/')
|
||||
{
|
||||
fprintf (stderr, "%s", _("Must use absolute path.\n"));
|
||||
argp_usage (state);
|
||||
}
|
||||
images = xrealloc (images, (num_disks + 1) * sizeof (images[0]));
|
||||
images[num_disks] = xstrdup (arg);
|
||||
images[num_disks] = canonicalize_file_name (arg);
|
||||
num_disks++;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue