Bug 168917 - file output for Berkeley DB broken by cracklib entries
Summary: file output for Berkeley DB broken by cracklib entries
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: 4
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-21 10:52 UTC by Nigel Metheringham
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.15-4
Clone Of:
Environment:
Last Closed: 2005-10-03 12:16:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nigel Metheringham 2005-09-21 10:52:15 UTC
Description of problem:
 A berkeley hash db file is not recognised as such by file, giving
 a rather useless output:-
   $ file /tmp/test.db
   /tmp/test.db: (1628767744 words)

 This appears to be picking up this entry from the magic database:-
  #---------------------------------------------
  # cracklib:  file (1) magic for cracklib v2.7
  ....
  0	long	0
  >4	belong	0x70775631	Cracklib password index, big endian ("64-bit")
  >12	belong	>0		(%i words)

 which appears *above* the more specific Berkeley DB section

Version-Release number of selected component (if applicable):
 file-4.15-fc4.1

How reproducible:
 Every time...

Steps to Reproduce:
1. echo "one\ntwo"|db_load -T -t hash /tmp/test.db
2. file /tmp/test.db
  
Actual results:
 /tmp/test.db: (1628767744 words)


Expected results:
 /tmp/test.db: Berkeley DB (Hash, version 8, native byte-order)


Additional info:
 Works correctly on RHEL4

Comment 1 Radek Vokál 2005-10-03 12:16:19 UTC
Fixed in rawhide


Note You need to log in before you can comment on or make changes to this bug.