]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/FfsFileStatement.py
BaseTools: Fix the bug to handle the read-only file
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / FfsFileStatement.py
index 690826bcb999b672739cea3fdf13188f1b5b11ce..f76ddf4d95a4fe2d0052cf8acab51c7c73e035c2 100644 (file)
@@ -101,7 +101,7 @@ class FileStatement (FileStatementClassObject) :
                     MaxAlignValue = 1\r
                     for Index, File in enumerate(self.FileName):\r
                         try:\r
-                            f = open(File, 'r+b')\r
+                            f = open(File, 'rb')\r
                         except:\r
                             GenFdsGlobalVariable.ErrorLogger("Error opening RAW file %s." % (File))\r
                         Content = f.read()\r