diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-07 00:30:52 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-07 00:30:52 +0000 |
commit | 2c5ce61d06dcedd3f1a9cd3300deb671e448e55a (patch) | |
tree | 5f24e11f9bc49fd3b2e6f1e21f77a4c629c95fce | |
parent | 8db9424e553889e6493e1ec4f73df8e588801fe5 (diff) | |
download | edk2-2c5ce61d06dcedd3f1a9cd3300deb671e448e55a.zip edk2-2c5ce61d06dcedd3f1a9cd3300deb671e448e55a.tar.gz edk2-2c5ce61d06dcedd3f1a9cd3300deb671e448e55a.tar.bz2 |
Fix bug where open() mode was not being set based on type of device being emulated.
signed-off-by:andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12917 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EmulatorPkg/Unix/Host/BlockIo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/BlockIo.c b/EmulatorPkg/Unix/Host/BlockIo.c index 50fe9b5..fa05fbc 100644 --- a/EmulatorPkg/Unix/Host/BlockIo.c +++ b/EmulatorPkg/Unix/Host/BlockIo.c @@ -661,6 +661,8 @@ EmuBlockIoThunkOpen ( }
}
+ Private->Mode = Private->WriteProtected ? O_RDONLY : O_RDWR;
+
This->Interface = &Private->EmuBlockIo;
This->Private = Private;
return EFI_SUCCESS;
|