mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Set the default umask automatically upon install
This commit is contained in:
parent
f0e6b818af
commit
63b6ac9e37
4 changed files with 12 additions and 7 deletions
|
|
@ -738,7 +738,7 @@ class Storage
|
|||
// On Windows, set the umask to 0000.
|
||||
if (strncasecmp(\PHP_OS, 'Win', 3) === 0)
|
||||
{
|
||||
return 0000;
|
||||
return '0000';
|
||||
}
|
||||
|
||||
// Get the UID of the owner of the current file.
|
||||
|
|
@ -770,13 +770,13 @@ class Storage
|
|||
// If both UIDs are the same, set the umask to 0022.
|
||||
if ($file_uid == $php_uid)
|
||||
{
|
||||
return 0022;
|
||||
return '0022';
|
||||
}
|
||||
|
||||
// Otherwise, set the umask to 0000.
|
||||
else
|
||||
{
|
||||
return 0000;
|
||||
return '0000';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue