develooper Front page | perl.perl5.porters | Postings from September 2001

umask EXPR & 0700 fatality

Thread Next
Chris Nandor
September 26, 2001 09:01
umask EXPR & 0700 fatality
Message ID:
perlfunc says:

               If umask(2) is not implemented on your system and
               you are trying to restrict access for yourself
               (i.e., (EXPR & 0700) > 0), produces a fatal error
               at run time.  If umask(2) is not implemented and
               you are not trying to restrict access for
               yourself, returns "undef".

I am trying to find out *why*.  I found just a few references here and 
there, and this patch:

But I am not sure why it makes sense for, in my case, MacPerl to ever 
die for a umask() call.  I am inclined to just have umask() die on 
MacPerl just as it would on any other platform, but I am not sure this 
is best.

Thoughts, insights?


Chris Nandor            
Open Source Development Network

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About