Close #13007: whichdb should recognize gdbm 1.9 magic numbers

This commit is contained in:
Jesus Cea 2011-09-19 16:57:18 +02:00
parent 607cc361bb
commit d256ca12c1
2 changed files with 3 additions and 1 deletions

View file

@ -91,7 +91,7 @@ def whichdb(filename):
return ""
# Check for GNU dbm
if magic == 0x13579ace:
if magic in (0x13579ace, 0x13579acd, 0x13579acf):
return "gdbm"
# Check for old Berkeley db hash file format v2