Author: markt
Date: Sun Aug 7 10:37:16 2011
New Revision: 1154689
URL: http://svn.apache.org/viewvc?rev=1154689&view=rev
Log:
Only try and create the dir if it doesn't already exist
Modified:
tomcat/trunk/java/org/apache/juli/FileHandler.java
Modified: tomcat/trunk/java/org/apache/juli/FileHandler.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/FileHandler.java?rev=1154689&r1=1154688&r2=1154689&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/FileHandler.java (original)
+++ tomcat/trunk/java/org/apache/juli/FileHandler.java Sun Aug 7 10:37:16 2011
@@ -363,7 +363,7 @@ public class FileHandler
// Create the directory if necessary
File dir = new File(directory);
- if (!dir.mkdirs()) {
+ if (!dir.exists() && !dir.mkdirs()) {
reportError("Unable to create [" + dir + "]", null,
ErrorManager.OPEN_FAILURE);
writer = null;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]