mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Allow opening read-only devices on Linux.
This commit is contained in:
@@ -94,7 +94,7 @@ namespace DiscImageChef.Devices
|
||||
{
|
||||
LastError = Marshal.GetLastWin32Error();
|
||||
|
||||
if(LastError == 13) // EACCES
|
||||
if(LastError == 13 || LastError == 30) // EACCES or EROFS
|
||||
{
|
||||
FileHandle = Linux.Extern.open(devicePath, FileFlags.Readonly | FileFlags.NonBlocking);
|
||||
if((int)FileHandle < 0)
|
||||
|
||||
Reference in New Issue
Block a user