From eeae3102dff5a8a2790ca7f11f90c08177d5267b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 4 Oct 2003 07:37:03 +0000 Subject: [PATCH] fix to give the files in vfs only minimal rights (rw for owner, rwx for owner on dirs) --- phpgwapi/inc/class.vfs_sql.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index 2e319f082a..aa1909319e 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -882,7 +882,7 @@ return False; } - umask(000); + umask(0177); /* If 'string' doesn't exist, touch () creates both the file and the database entry @@ -975,7 +975,7 @@ ) ); - umask (000); + umask (0177); if ($this->file_actions) { @@ -1138,7 +1138,7 @@ } - umask(000); + umask(0177); if ($this->file_type (array( 'string' => $f->fake_full_path, @@ -1388,7 +1388,7 @@ } } - umask (000); + umask (0177); /* We can't move directories into themselves */ if (($this->file_type (array( @@ -1755,7 +1755,7 @@ return False; } - umask (000); + umask (077); if ($this->file_actions) {