You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ng...@apache.org on 2008/11/16 22:00:24 UTC
svn commit: r718117 - in /mina/ftpserver/trunk/core/src:
main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java
test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java
Author: ngn
Date: Sun Nov 16 13:00:24 2008
New Revision: 718117
URL: http://svn.apache.org/viewvc?rev=718117&view=rev
Log:
Directory permissions should include execute permission (FTPSERVER-221)
Modified:
mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java
mina/ftpserver/trunk/core/src/test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java
Modified: mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java
URL: http://svn.apache.org/viewvc/mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java?rev=718117&r1=718116&r2=718117&view=diff
==============================================================================
--- mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java (original)
+++ mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/command/impl/listing/LISTFileFormater.java Sun Nov 16 13:00:24 2008
@@ -95,6 +95,7 @@
permission[0] = file.isDirectory() ? 'd' : '-';
permission[1] = file.isReadable() ? 'r' : '-';
permission[2] = file.isWritable() ? 'w' : '-';
+ permission[3] = file.isDirectory() ? 'x' : '-';
return permission;
}
Modified: mina/ftpserver/trunk/core/src/test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java
URL: http://svn.apache.org/viewvc/mina/ftpserver/trunk/core/src/test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java?rev=718117&r1=718116&r2=718117&view=diff
==============================================================================
--- mina/ftpserver/trunk/core/src/test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java (original)
+++ mina/ftpserver/trunk/core/src/test/java/org/apache/ftpserver/commands/impl/listing/LISTFileFormaterTest.java Sun Nov 16 13:00:24 2008
@@ -45,7 +45,7 @@
private static final String TEST_FILE_FORMAT = "-r-------- 1 owner group 13 Feb 2 2005 short\r\n";
- private static final String TEST_DIR_FORMAT = "dr-------- 3 owner group 0 Feb 2 2005 short\r\n";
+ private static final String TEST_DIR_FORMAT = "dr-x------ 3 owner group 0 Feb 2 2005 short\r\n";
public LISTFileFormater formater = new LISTFileFormater();