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

Diff for /src/usr.bin/touch/touch.c between version 1.15 and 1.16

version 1.15, 2007/05/25 13:56:59 version 1.16, 2007/06/18 11:20:58
Line 181 
Line 181 
                 err(1, "localtime");                  err(1, "localtime");
                                         /* [[CC]YY]MMDDhhmm[.SS] */                                          /* [[CC]YY]MMDDhhmm[.SS] */
         for (p = arg, dot = NULL; *p != '\0'; p++) {          for (p = arg, dot = NULL; *p != '\0'; p++) {
                 if (*p == '.' && dot != NULL)                  if (*p == '.' && dot == NULL)
                         dot = p;                          dot = p;
                 else if (!isdigit((unsigned char)*p))                  else if (!isdigit((unsigned char)*p))
                         goto terr;                          goto terr;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16