tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@locus.apache.org
Subject cvs commit: jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/realm MemoryRealm.java
Date Mon, 31 Jul 2000 16:26:20 GMT
remm        00/07/31 09:26:19

  Modified:    proposals/catalina/src/share/org/apache/tomcat/realm
                        MemoryRealm.java
  Log:
  - Fix for an initialization problem of MemoryRealm
  
  Revision  Changes    Path
  1.9       +8 -7      jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/realm/MemoryRealm.java
  
  Index: MemoryRealm.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/realm/MemoryRealm.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MemoryRealm.java	2000/07/27 01:27:20	1.8
  +++ MemoryRealm.java	2000/07/31 16:26:17	1.9
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/realm/MemoryRealm.java,v
1.8 2000/07/27 01:27:20 craigmcc Exp $
  - * $Revision: 1.8 $
  - * $Date: 2000/07/27 01:27:20 $
  + * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/realm/MemoryRealm.java,v
1.9 2000/07/31 16:26:17 remm Exp $
  + * $Revision: 1.9 $
  + * $Date: 2000/07/31 16:26:17 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * synchronization is performed around accesses to the principals collection.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.8 $ $Date: 2000/07/27 01:27:20 $
  + * @version $Revision: 1.9 $ $Date: 2000/07/31 16:26:17 $
    */
   
   public final class MemoryRealm
  @@ -577,6 +577,8 @@
   	    results[i] = roles[i];
   	results[roles.length] = role;
   
  +        roles = results;
  +
       }
   
   
  @@ -609,9 +611,8 @@
   
   	if (role == null)
   	    return (false);
  -
  -	for (int i = 0; i < roles.length; i++) {
  -	    if (role.equals(roles[i]))
  +        for (int i = 0; i < roles.length; i++) {
  +            if (role.equals(roles[i]))
   		return (true);
   	}
   	return (false);
  
  
  

Mime
View raw message