commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r684716 - /commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
Date Mon, 11 Aug 2008 11:25:48 GMT
Author: niallp
Date: Mon Aug 11 04:25:47 2008
New Revision: 684716

URL: http://svn.apache.org/viewvc?rev=684716&view=rev
Log:
Fix IO-168 Add symlink check to deleteDirectoryOnExit() method as well

Modified:
    commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java?rev=684716&r1=684715&r2=684716&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java Mon Aug 11 04:25:47
2008
@@ -1457,7 +1457,9 @@
             return;
         }
 
-        cleanDirectoryOnExit(directory);
+        if (!isSymlink(directory)) {
+            cleanDirectoryOnExit(directory);
+        }
         directory.deleteOnExit();
     }
 



Mime
View raw message