We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6da69a commit f07f355Copy full SHA for f07f355
patch-vbmeta.py
@@ -24,7 +24,7 @@ def patch_vbmeta(file):
24
magic = os.read(fd, AVB_MAGIC_LEN)
25
26
if magic != AVB_MAGIC:
27
- fd.close()
+ os.close(fd)
28
sys.exit(
29
"Error: The provided image is not a valid vbmeta image.\nFile not modified. Exiting..."
30
)
@@ -34,7 +34,7 @@ def patch_vbmeta(file):
34
os.lseek(fd, FLAGS_OFFSET, os.SEEK_SET)
35
os.write(fd, FLAGS_TO_SET)
36
except OSError:
37
38
sys.exit("Error: Failed when patching the vbmeta image.\nExiting...")
39
40
# end of program
0 commit comments