From commits-return-6913-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Tue Nov 08 06:37:56 2005 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 62286 invoked from network); 8 Nov 2005 06:37:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Nov 2005 06:37:55 -0000 Received: (qmail 16870 invoked by uid 500); 8 Nov 2005 06:37:51 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 16773 invoked by uid 500); 8 Nov 2005 06:37:50 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 16731 invoked by uid 99); 8 Nov 2005 06:37:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 22:37:50 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 07 Nov 2005 22:37:44 -0800 Received: (qmail 62165 invoked by uid 65534); 8 Nov 2005 06:37:29 -0000 Message-ID: <20051108063729.62164.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r331710 - /directory/apacheds/trunk/server/src/main/java/org/apache/ldap/server/jndi/ServerContextFactory.java Date: Tue, 08 Nov 2005 06:37:29 -0000 To: commits@directory.apache.org From: akarasulu@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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( "=" );