Skip to content

Commit

Permalink
sdat2img.py: revert to write access mode only
Browse files Browse the repository at this point in the history
till further inspection to avoid overwriting
  • Loading branch information
xpirt authored Oct 30, 2018
1 parent c99e13b commit 1b08432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdat2img.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def parse_transfer_list_file(path):

# Don't clobber existing files to avoid accidental data loss
try:
output_img = open(OUTPUT_IMAGE_FILE, 'wbx')
output_img = open(OUTPUT_IMAGE_FILE, 'wb')
except IOError as e:
if e.errno == errno.EEXIST:
print('Error: the output file "{}" already exists'.format(e.filename), file=sys.stderr)
Expand Down

0 comments on commit 1b08432

Please sign in to comment.