[BACK]Return to fnmatch.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/fnmatch.c between version 1.21.40.1 and 1.23

version 1.21.40.1, 2011/02/08 16:18:59 version 1.23, 2011/01/31 15:07:29
Line 122  fnmatchx(const char *pattern, const char
Line 122  fnmatchx(const char *pattern, const char
         if (recursion-- == 0)          if (recursion-- == 0)
                 return FNM_NORES;                  return FNM_NORES;
   
         for (stringstart = string;;) {          for (stringstart = string;;)
                 switch (c = FOLDCASE(*pattern++, flags)) {                  switch (c = FOLDCASE(*pattern++, flags)) {
                 case EOS:                  case EOS:
                         if ((flags & FNM_LEADING_DIR) && *string == '/')                          if ((flags & FNM_LEADING_DIR) && *string == '/')
Line 202  fnmatchx(const char *pattern, const char
Line 202  fnmatchx(const char *pattern, const char
                                 return FNM_NOMATCH;                                  return FNM_NOMATCH;
                         break;                          break;
                 }                  }
         }  
         /* NOTREACHED */          /* NOTREACHED */
 }  }
   

Legend:
Removed from v.1.21.40.1  
changed lines
  Added in v.1.23

CVSweb <webmaster@jp.NetBSD.org>