aboutsummaryrefslogtreecommitdiffstats
path: root/i.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-11-07 21:06:38 +0000
committerrvelices <rv-github@modusoptimus.com>2013-11-07 21:06:38 +0000
commitae8186a484c1b6ad3c3df49172645c7b9c0a99ff (patch)
tree98fff82515eff682352f2484809bdb3f5470acae /i.php
parent0590f7e4354d183ca19f9c23ac4f77ce6699853a (diff)
i.php better check dir creation
git-svn-id: http://piwigo.org/svn/trunk@25385 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--i.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/i.php b/i.php
index 6b1b88193..01cfc9f0a 100644
--- a/i.php
+++ b/i.php
@@ -49,7 +49,7 @@ function mkgetdir($dir)
$umask = umask(0);
$mkd = @mkdir($dir, $conf['chmod_value'], true);
umask($umask);
- if ($mkd==false)
+ if ($mkd==false && !is_dir($dir) /* retest existence because of potential concurrent i.php with slow file systems*/)
{
return false;
}