Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
# Set the umask to 0's so if we have to create the file, we do it w/0 +666 mask. 323 # NOTE: The default umask for users is 0022, so creating a + file will mask it with 0666 &* 0022 = 0644 324 umask 0000; 325 sysopen( FH, $log_file_name, O_WRONLY | O_CREAT | O_APPEND +, 0666 ) 326 or die "\n\tcan't open $log_file_name....$!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: umask with 0666
by almut (Canon) on Aug 04, 2010 at 12:14 UTC | |
by fionbarr (Friar) on Aug 04, 2010 at 12:39 UTC | |
|
Re: umask with 0666
by ikegami (Patriarch) on Aug 04, 2010 at 15:55 UTC |