You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SCSIExecute() routine in scsiencrypt.cpp blocks when opening a device that is not ready. When the device is not ready, the Linux kernel keeps polling the drive with SCSI Test Unit Ready commands.
Change the line
sg_fd = open(tapedevice, O_RDONLY);
When running stenc on a drive with not cartridge, it "waits" doing nothing.
Expected behavior:
stenc should detect an empty drive and return a proper exit code.
The text was updated successfully, but these errors were encountered: