diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-07 19:41:35 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-07 19:41:35 +0100 |
commit | 9f3cdec3cdadd771a7c5e6f65f00543954995940 (patch) | |
tree | fbe5ae7fd9949b3d6205b74119326c595e9824f5 | |
parent | 60e6b550b60672fe78cdfeb0abafa4c16b1451c5 (diff) | |
download | rpg-9f3cdec3cdadd771a7c5e6f65f00543954995940.tar.gz rpg-9f3cdec3cdadd771a7c5e6f65f00543954995940.tar.bz2 |
fallback if umask() call doesn't work FS#736
darcs-hash:20060307184135-7ad00-9acd0c9e78976d348ae728dc491a7b7cebf5dd9d.gz
-rw-r--r-- | inc/init.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index 10c7240d8..ab7cab3b8 100644 --- a/inc/init.php +++ b/inc/init.php @@ -181,8 +181,9 @@ function init_creationmodes(){ unset($conf['fperm']); unset($conf['dperm']); - // get system umask - $umask = umask(); + // get system umask, fallback to 0 if none available + $umask = @umask(); + if(!$umask) $umask = 0000; // check what is set automatically by the system on file creation // and set the fperm param if it's not what we want |