fix a bug in the command device, and fix an incompatibility with the new version of ext2fs.

This commit is contained in:
okuji committed 1999-11-03 04:00:30 +00:00
1 parent c6ec01220b
commit 7b326e1351
4 files changed
+20 -5

No files matched your search

+4 -3
View File
@@ -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;