i.php better check dir creation

git-svn-id: http://piwigo.org/svn/trunk@25385 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices 2013-11-07 21:06:38 +00:00
parent 0590f7e435
commit ae8186a484

2
i.php
View file

@ -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;
}