[Python-Dev] mailbox._create_temporary without checking the file permission

Dasn dasn at lavabit.com
Fri Aug 17 08:41:55 CEST 2007


Hi, guys. 

_create_temporary is not tracking the perm bits of the original mbox.

$ ls -l me
-rw-------  1 dasn  users  274886 Aug 16 08:43 me
$ python
Python 2.5.1 (r251:54863,  May  8 2007,  07:32:21)
[GCC 3.3.5 (propolice)] on openbsd4
Type "help",  "copyright",  "credits" or "license" for more information.
>>> from mailbox import mbox
>>> m=mbox('me')
>>> m.pop(0)
<mailbox.mboxMessage instance at 0x84865ecc>
>>> m.flush()
>>>^D
$ ls -l me
-rwxr-xr-x  1 dasn  users  268438 Aug 16 09:26 me*
$

-- 
Dasn



More information about the Python-Dev mailing list