tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r742713 - /tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java
Date Mon, 09 Feb 2009 20:06:08 GMT
Author: markt
Date: Mon Feb  9 20:06:07 2009
New Revision: 742713

URL: http://svn.apache.org/viewvc?rev=742713&view=rev
Log:
Revert previous patch. It won't work.

Modified:
    tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java

Modified: tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java?rev=742713&r1=742712&r2=742713&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java (original)
+++ tomcat/trunk/java/org/apache/naming/resources/FileDirContext.java Mon Feb  9 20:06:07
2009
@@ -846,7 +846,7 @@
      * List the resources which are members of a collection.
      *
      * @param file Collection
-     * @return Vector containing NamingEntry objects
+     * @return Vector containg NamingEntry objects
      */
     protected ArrayList<NamingEntry> list(File file) {
 
@@ -867,11 +867,8 @@
 
         for (int i = 0; i < names.length; i++) {
 
-            File currentFile = new File(file, names[i]);
-            if (allowLinking) {
-                currentFile = validate(currentFile);
-                if (currentFile == null) continue;
-            }
+            File currentFile = validate(new File(file, names[i]));
+            if (currentFile == null) continue;
             
             Object object = null;
             if (currentFile.isDirectory()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message