httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Schau <...@fleggaard.dk>
Subject Re: [PATCH+TOOL] GDBM authorization.
Date Tue, 09 Mar 1999 21:57:07 GMT
> Dunno, I just downloaded the most recent, gdbm-1.7.3, and I see this:
> 
> % grep '\<dbm_open\>' *.c
> dbmopen.c:dbm_open (file, flags, mode)
> testndbm.c:  dbm_file = dbm_open (file_name, O_RDWR|O_CREAT, 00664);
> testndbm.c:      printf ("dbm_open failed.\n");

So do I.  But try running the test suite ...   The following tries to
illustrate the following:

1) Create a database in 'dbm' format.
2) Store a key 'aaa' (content 'bbb') in this new database.
3) Read the key using 'ndbm'.
4) Read the key using 'gdbm'.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Script started on Tue Mar  9 22:43:24 1999
cryo:/usr/src/packages/SOURCES/gdbm-1.7.3 # ./testdbm db

Welcome to the dbm test program.  Type ? for help.

com -> ?
c - count elements
d - delete
f - fetch
q - quit
s - store
1 - firstkey
2 - nextkey on last return value

com -> s
key -> aaa
data -> bbb			# the database is now initialized, key aaa=bbb

com -> q
cryo:/usr/src/packages/SOURCES/gdbm-1.7.3 # ./testndbm db

Welcome to the gndbm test program.  Type ? for help.

com -> ?
c - count elements
d - delete
f - fetch
q - quit
s - store
1 - firstkey
2 - nextkey on last return value

com -> f
key -> aaa
data is ->bbb			# this is expected.

com -> q
cryo:/usr/src/packages/SOURCES/gdbm-1.7.3 # ./testgdbm db

Welcome to the gdbm test program.  Type ? for help.

com -> ?
c - count (number of entries)
d - delete
f - fetch
n - nextkey
q - quit
s - store
1 - firstkey
2 - nextkey on last key (from n, 1 or 2)

r - reorganize
A - print avail list
B - get and print current bucket n
C - print current bucket
D - print hash directory
F - print file header
H - hash value of key
K - print the bucket cache
V - print version of gdbm
com -> f
key -> aaa
No such item found.		# ....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

com -> q
cryo:/usr/src/packages/SOURCES/gdbm-1.7.3 # ll db*
-rw-r--r--   2 root     root        12296 mar  9 22:43 db.dir
-rw-r--r--   2 root     root        12296 mar  9 22:43 db.pag
cryo:/usr/src/packages/SOURCES/gdbm-1.7.3 # exit
exit

Script done on Tue Mar  9 22:44:23 1999
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

1. The gdbm library expects a file called 'db' (without the .dir and
.pag extensions).
2. ... which renders 'dbmmanage' from the standard apache-dist pretty
useless as it only creates 'dbm' and/or 'ndbm' compatible files.
3. When linking with libgdbm you get the 'gdbm' functionality not 'dbm'
or 'ndbm'.

> 
> It still supports dbm.

Yes, but AFAICT it is gdbm is incompatible to dbm or ndbm?!?!?

Anyway, I don't want to argue anymore.   Leave the patch out.   I will
upload it on my homepage instead ...  ;o)


Thanks for your time.


Kind regards,


Brian


-- 
Automobile, n.:

    A four-wheeled vehicle that runs
up hills and down pedestrains.

Mime
View raw message