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

Diff for /src/usr.bin/look/look.c between version 1.24 and 1.25

version 1.24, 2021/07/12 15:09:20 version 1.25, 2021/10/24 21:24:16
Line 118 
Line 118 
         if (termchar != '\0' && (p = strchr(string, termchar)) != NULL)          if (termchar != '\0' && (p = strchr(string, termchar)) != NULL)
                 *++p = '\0';                  *++p = '\0';
   
         if ((fd = open(file, O_RDONLY, 0)) == -1 || fstat(fd, &sb) == -1)          if ((fd = open(file, O_RDONLY)) == -1 || fstat(fd, &sb) == -1)
                 err(2, "%s", file);                  err(2, "%s", file);
         if (sb.st_size > SIZE_MAX)          if (sb.st_size > SIZE_MAX)
                 errc(2, EFBIG, "%s", file);                  errc(2, EFBIG, "%s", file);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25