fix: allow blank media in medium-info
This resolves the second part of issue #19. This bug was present since upstream v0.79.5
This commit is contained in:
@@ -877,7 +877,7 @@ void ReadSector(char *arg)
|
||||
|
||||
/*** Open the device */
|
||||
|
||||
image = OpenImageFromDevice(Closure->device);
|
||||
image = OpenImageFromDevice(Closure->device, 0);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
|
||||
@@ -931,7 +931,7 @@ void RawSector(char *arg)
|
||||
|
||||
/*** Open the device */
|
||||
|
||||
image = OpenImageFromDevice(Closure->device);
|
||||
image = OpenImageFromDevice(Closure->device, 0);
|
||||
if(!image)
|
||||
Stop(_("Can't open %s:\n%s"), Closure->imageName, strerror(errno));
|
||||
sense = &image->dh->sense;
|
||||
|
||||
Reference in New Issue
Block a user