[BACK]Return to match.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/match.c between version 1.21.2.1 and 1.22

version 1.21.2.1, 2006/09/30 04:06:50 version 1.22, 2006/03/19 18:51:18
Line 1 
Line 1 
 /* $OpenBSD$ */  
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 35 
Line 34 
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */   */
   
 #include <sys/types.h>  #include "includes.h"
   
 #include <ctype.h>  #include <ctype.h>
 #include <string.h>  
   
 #include "xmalloc.h"  
 #include "match.h"  #include "match.h"
   #include "xmalloc.h"
   
 /*  /*
  * Returns true if the given string matches the pattern (which may contain ?   * Returns true if the given string matches the pattern (which may contain ?
Line 139 
Line 137 
                     i < len && subi < sizeof(sub) - 1 && pattern[i] != ',';                      i < len && subi < sizeof(sub) - 1 && pattern[i] != ',';
                     subi++, i++)                      subi++, i++)
                         sub[subi] = dolower && isupper(pattern[i]) ?                          sub[subi] = dolower && isupper(pattern[i]) ?
                             (char)tolower(pattern[i]) : pattern[i];                              tolower(pattern[i]) : pattern[i];
                 /* If subpattern too long, return failure (no match). */                  /* If subpattern too long, return failure (no match). */
                 if (subi >= sizeof(sub) - 1)                  if (subi >= sizeof(sub) - 1)
                         return 0;                          return 0;

Legend:
Removed from v.1.21.2.1  
changed lines
  Added in v.1.22