Mark Sapiro wrote:
>
>What happens if you try the following:
>
>su mailman
>python
>>>> import os
>>>> os.umask(002)
>>>> os.makedirs('/home/mailman/archives/private/membership/attachments/20060301/cf7df1b6',
>>>> 02775)
>>>> open('/home/mailman/archives/private/membership/attachments/20060301/cf7df1b6/xxx',
>>>> 'w')
>
>
>
>os.makedirs( ... 2775) is all one line as is
>open( ... 'w')
>
>Does this throw any exception? Does it create the missing directories?
>(note, type control-D in response to a >>> prompt to exit Python)
And what happens if you try
su mailman
python
>>> import os
>>> os.umask(002)
>>> os.makedirs('/home/mailman/archives/private/xyz/attachments/20060301/cf7df1b6',
>>> 02775)
>>> open('/home/mailman/archives/private/xyz/attachments/20060301/cf7df1b6/xxx',
>>> 'w')
where xyz is not a symlink?
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp