You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2005/11/08 07:37:29 UTC
svn commit: r331710 -
/directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Author: akarasulu
Date: Mon Nov 7 22:37:25 2005
New Revision: 331710
URL: http://svn.apache.org/viewcvs?rev=331710&view=rev
Log:
used the path separator instead of the separator char
Modified:
directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
Modified: directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java?rev=331710&r1=331709&r2=331710&view=diff
==============================================================================
--- directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java (original)
+++ directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java Mon Nov 7 22:37:25 2005
@@ -202,8 +202,8 @@
private final static String UNIXFILE_OC = "unixFile";
private void addFileEntry( DirContext root, File ldif ) throws NamingException
{
- String rdnAttr = File.pathSeparatorChar == '\\' ? WINDOWSFILE_ATTR : UNIXFILE_ATTR;
- String oc = File.pathSeparatorChar == '\\' ? WINDOWSFILE_OC : UNIXFILE_OC;
+ String rdnAttr = File.separatorChar == '\\' ? WINDOWSFILE_ATTR : UNIXFILE_ATTR;
+ String oc = File.separatorChar == '\\' ? WINDOWSFILE_OC : UNIXFILE_OC;
StringBuffer buf = new StringBuffer();
buf.append( rdnAttr );
buf.append( "=" );