cvs: smarty /libs/core core.create_dir_structure.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1059136812@cvsserver>
messju		Fri Jul 25 08:40:12 2003 EDT

  Modified files:              
    /smarty/libs/core	core.create_dir_structure.php 
  Log:
  weakend race-condition and removed bogus error-message caused by that
  in smarty_core_create_dir_structure().
  
  
  
Index: smarty/libs/core/core.create_dir_structure.php
diff -u smarty/libs/core/core.create_dir_structure.php:1.3 smarty/libs/core/core.create_dir_structure.php:1.4
--- smarty/libs/core/core.create_dir_structure.php:1.3	Sat Jun 21 23:13:25 2003
+++ smarty/libs/core/core.create_dir_structure.php	Fri Jul 25 08:40:12 2003
@@ -65,7 +65,7 @@
                 $_make_new_dir = true;                    
             }
 
-            if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms)) {
+            if ($_make_new_dir && !file_exists($_new_dir) && !@mkdir($_new_dir, $smarty->_dir_perms) && !is_dir($_new_dir)) {
                 $smarty->trigger_error("problem creating directory '" . $_new_dir . "'");
                 return false;
             }



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.