diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-11-07 21:06:38 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-11-07 21:06:38 +0000 |
commit | ae8186a484c1b6ad3c3df49172645c7b9c0a99ff (patch) | |
tree | 98fff82515eff682352f2484809bdb3f5470acae /i.php | |
parent | 0590f7e4354d183ca19f9c23ac4f77ce6699853a (diff) |
i.php better check dir creation
git-svn-id: http://piwigo.org/svn/trunk@25385 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'i.php')
-rw-r--r-- | i.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |