A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-August/074179.html below:

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

[Python-Dev] mailbox._create_temporary without checking the file permission [Python-Dev] mailbox._create_temporary without checking the file permissionDasn 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4