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:
parent
0590f7e435
commit
ae8186a484
1 changed files with 1 additions and 1 deletions
2
i.php
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue