NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39254: db(1) doesn't work properly anymore since the upgrade to 1.15



>Number:         39254
>Category:       bin
>Synopsis:       db(1) doesn't work properly anymore since the upgrade to 1.15
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 31 11:10:00 +0000 2008
>Originator:     Edwin Groothuis
>Release:        4.0
>Organization:
-
>Environment:
>Description:
With the commit of revision 1.15, the db(1) command is broken when selecting a 
single key:

$ db/db -N hash hash.db localhost
db: Error reading key `localhost': Invalid argument

The invalid argument comes from hash_seq() in src/lib/libc/db/hash/hash.c, 
which checks for the flags being R_FIRST or R_NEXT. db_get() calls it with 
R_CURSOR, which works fine for a BTree database but not for hash-database.

>How-To-Repeat:

>Fix:
Backout of 1.14.



Home | Main Index | Thread Index | Old Index