procmail
[Top] [All Lists]

umask on crack

2003-02-07 01:05:30
Hello, I just tried setting umask as follows

--------------------------
UMASK=744
:0w:
* stuff here
REPORT=| ( munpack -C blahblah ; mv --backup=numbered blahblah yaddayadda )

:0e:
LOG="$REPORT$NL"
UMASK=600
--------------------------

According to the man page, it is supposed to interpret the number as octal.  
I'm assuming that it's *exactly* the way chmod would.  Apparantly not.  Files 
created from the munpack/mv have a protection mask of  -----w--w- and files 
created after that point have a protection mask of ----rw-rwx  Can someone tell 
me what is going on?

Thanks

Jeff

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>