From b687885519897ab2959bb0540ec822b96f722fd6 Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Sat, 18 Feb 2006 19:37:53 +0100 Subject: Fix wrong umask usage and so we set the correct file premissions. darcs-hash:20060218183753-ee6b9-1a3dab069a868e3f5e10e9dd6af14fefd0d8b730.gz --- lib/plugins/plugin/admin.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/plugins') diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php index 8c740e18d..7715d10ff 100644 --- a/lib/plugins/plugin/admin.php +++ b/lib/plugins/plugin/admin.php @@ -586,13 +586,12 @@ class ap_manage { // possibly should use io_MakeFileDir, not sure about using its method of error handling function ap_mkdir($d) { global $conf; - - umask($conf['dmask']); - $ok = io_mkdir_p($d); + umask($conf['umask']); + $ok = io_mkdir_p($d); return $ok; } - + // copy with recursive sub-directory support function ap_copy($src, $dst) { -- cgit v1.2.3