Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b86ba12

Browse files
committed
Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.
1 parent 2aefe8d commit b86ba12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/whichdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def whichdb(filename):
5050
return "gdbm"
5151

5252
# Check for BSD hash
53-
if magic == 0x061561:
53+
if magic in (0x00061561, 0x61150600):
5454
return "dbhash"
5555

5656
# Unknown

0 commit comments

Comments
 (0)