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

Diff for /src/usr.bin/cvs/file.c between version 1.274 and 1.275

version 1.274, 2020/10/19 19:51:20 version 1.275, 2021/10/24 21:24:16
Line 1010 
Line 1010 
   
         ret = 0;          ret = 0;
   
         if ((fd1 = open(file1, O_RDONLY|O_NOFOLLOW, 0)) == -1)          if ((fd1 = open(file1, O_RDONLY|O_NOFOLLOW)) == -1)
                 fatal("cvs_file_cmp: open: `%s': %s", file1, strerror(errno));                  fatal("cvs_file_cmp: open: `%s': %s", file1, strerror(errno));
         if ((fd2 = open(file2, O_RDONLY|O_NOFOLLOW, 0)) == -1)          if ((fd2 = open(file2, O_RDONLY|O_NOFOLLOW)) == -1)
                 fatal("cvs_file_cmp: open: `%s': %s", file2, strerror(errno));                  fatal("cvs_file_cmp: open: `%s': %s", file2, strerror(errno));
   
         if (fstat(fd1, &stb1) == -1)          if (fstat(fd1, &stb1) == -1)
Line 1079 
Line 1079 
         if (cvs_noexec == 1)          if (cvs_noexec == 1)
                 return (0);                  return (0);
   
         if ((src = open(from, O_RDONLY, 0)) == -1)          if ((src = open(from, O_RDONLY)) == -1)
                 fatal("cvs_file_copy: open: `%s': %s", from, strerror(errno));                  fatal("cvs_file_copy: open: `%s': %s", from, strerror(errno));
   
         if (fstat(src, &st) == -1)          if (fstat(src, &st) == -1)

Legend:
Removed from v.1.274  
changed lines
  Added in v.1.275