aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index f38e0afc26..a5d3be7461 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -563,6 +563,9 @@ function phpbb_chmod($filename, $perms = CHMOD_READ)
if ($_chmod_info['process'])
{
+ $file_uid = fileowner($filename);
+ $file_gid = filegroup($filename);
+
// Change owner
if (@chown($filename, $_chmod_info['common_owner']))
{