version 1.274, 2020/10/19 19:51:20 |
version 1.275, 2021/10/24 21:24:16 |
|
|
|
|
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) |
|
|
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) |