mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
fix a bug in the command device, and fix an incompatibility with the new version of ext2fs.
This commit is contained in:
1 parent
c6ec01220b
commit
7b326e1351
4 files changed
+20
-5
No files matched your search
+4
-3
@@ -453,15 +453,16 @@ device_func (char *arg, int flags)
|
||||
|
||||
/* Get the device argument. */
|
||||
device = skip_to (0, drive);
|
||||
|
||||
/* Terminate DEVICE. */
|
||||
nul_terminate (device);
|
||||
|
||||
if (! *device || ! check_device (device))
|
||||
{
|
||||
errnum = ERR_FILE_NOT_FOUND;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Terminate DEVICE. */
|
||||
nul_terminate (device);
|
||||
|
||||
assign_device_name (current_drive, device);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user