From ac8734db3635b22e8bf309217fb836039e08a5a2 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 24 Jun 2003 15:09:09 +0000 Subject: [PATCH] =?UTF-8?q?Chnage=20l'umask=20par=20d=E9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/soc.php3 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/soc.php3 b/htdocs/soc.php3 index 17bebd8f132..2416d4a7cd7 100644 --- a/htdocs/soc.php3 +++ b/htdocs/soc.php3 @@ -203,6 +203,7 @@ elseif ($action == 'edit') */ clearstatcache(); + umask(0); $docdir = SOCIETE_OUTPUTDIR . "/$socid"; $url = SOCIETE_OUTPUT_URL . "/$socid"; @@ -213,8 +214,8 @@ elseif ($action == 'edit') } else { - - if (! @mkdir ($docdir)) + + if (! @mkdir ($docdir, 0775)) { print "

Impossible de créer ".$docdir; }