]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/GenFds/FvImageSection.py
BaseTools: Fix the bug to handle the read-only file
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 14 Sep 2016 05:59:01 +0000 (13:59 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Thu, 15 Sep 2016 08:09:38 +0000 (16:09 +0800)
commitf8db6527da8678f1480f08ba99b745279e8d104a
treeb293d41e13924955af832bf602348e93023bdf1f
parent04b1d73a0dac00f5a394db89f928a18a6ce5ec15
BaseTools: Fix the bug to handle the read-only file

change the 'r+b' to 'rb' for some file's open, since these files we only
read it and no need to write. It can fix the bug that the file's attribute
had been set to read-only.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/GenFds/FfsFileStatement.py
BaseTools/Source/Python/GenFds/Fv.py
BaseTools/Source/Python/GenFds/FvImageSection.py
BaseTools/Source/Python/GenFds/Region.py