mirror of
https://github.com/simon987/sist2.git
synced 2025-04-04 07:52:59 +00:00
Update magic gen script
This commit is contained in:
parent
7d67354b96
commit
2d6553d5d2
@ -1,8 +1,5 @@
|
||||
|
||||
try:
|
||||
with open("/usr/lib/file/magic.mgc", "rb") as f:
|
||||
data = f.read()
|
||||
except:
|
||||
data = bytes([])
|
||||
with open("/usr/lib/file/magic.mgc", "rb") as f:
|
||||
data = f.read()
|
||||
|
||||
print("char magic_database_buffer[%d] = {%s};" % (len(data), ",".join(str(int(b)) for b in data)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user