mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
* util/grub-mount.c (argp_parser): Accept relative pathes.
* util/grub-fstest.c (argp_parser): Likewise.
This commit is contained in:
1 parent
111c17782a
commit
bc108a4a8a
3 files changed
+7
-12
No files matched your search
+1
-6
@@ -562,14 +562,9 @@ argp_parser (int key, char *arg, struct argp_state *state)
|
||||
|
||||
if (args_count < num_disks)
|
||||
{
|
||||
if (arg[0] != '/')
|
||||
{
|
||||
fprintf (stderr, "%s", _("Must use absolute path.\n"));
|
||||
argp_usage (state);
|
||||
}
|
||||
if (args_count == 0)
|
||||
images = xmalloc (num_disks * sizeof (images[0]));
|
||||
images[args_count] = xstrdup (arg);
|
||||
images[args_count] = canonicalize_file_name (arg);
|
||||
args_count++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user