X-Reportbug-Version: 3.39
X-Debbugs-Cc: [EMAIL PROTECTED]
Package: libgdbm3
Version: 1.8.3-3
Severity: normal


In some software I'm using libgdbm=1.8.3-3. Some routine wants to use 
a gdbm file as a kind of non-memory-limited hash, so it tries to open 
some filename with GDBM_NEWDB.

I wondered for some time why this routine gets old entries, until 
looking at an strace revealed that the open() call on the file has 
O_CREAT set, but not O_TRUNC - so no new database seems to be done!

I know it's possible that this flag just causes libgdbm to initialize 
its structures differently ... but it just doesn't work.

My band-aid was to do a unlink() just before, which works just fine 
(of course).


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_AT.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgdbm3 depends on:
ii  libc6                         2.6.1-6    GNU C Library: Shared libraries

libgdbm3 recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to