Brian <[EMAIL PROTECTED]> writes:

> On Sat, Aug 10, 2002 at 09:39:58PM -0500, Tim Legant wrote:
> > 
> > There's nothing right now.  We'd have to change the code in
> > Util.pickleit.
> 
> Well, I didn't see anyplace in Util.pickleit that applied a mask or anything that
> would modify the perms.  If someone could just point me in the right direction I'd
> be glad to hammer out the details...

The 'open' call (a Python built-in) doesn't take a permissions
parameter.  That call (just the one line) would need to be replaced by
something similar to the following.

    import Defaults
    perms = 0600
    if Defaults.ALLOW_MODE_640:
        perms = 0640
    fp = os.open(tmpname, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perms)

At least that's the theory - completely untested.


Tim
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to