[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [ python-Bugs-1212223 ] anydbm and 'n' flag
From:       noreply () sourceforge ! net (SourceForge ! net)
Date:       2005-05-31 19:32:00
Message-ID: E1DdCT2-0008Ah-Cd () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1212223, was opened at 2005-05-31 12:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1212223&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Moffitt (jackiem)
Assigned to: Nobody/Anonymous (nobody)
Summary: anydbm and 'n' flag

Initial Comment:
 When a 0 length file exists and anydbm is asked to
create a new database with that file name via the
anydbm.open(fn, 'n') call, the call fails as whichdb
detection fails.

whichdb should not be invoked with the 'n' flag, since
the purpose of this flag is to always create a
database, not only if it is missing.

This bug prevents creating a secure temporary file with
mkstemp and then uisng that file to open a database. 
The workaround is to unlink the file then call open,
but this is leaving a small hole.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1212223&group_id=5470

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic