=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.274 retrieving revision 1.275 diff -c -r1.274 -r1.275 *** src/usr.bin/cvs/file.c 2020/10/19 19:51:20 1.274 --- src/usr.bin/cvs/file.c 2021/10/24 21:24:16 1.275 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.274 2020/10/19 19:51:20 naddy Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.275 2021/10/24 21:24:16 deraadt Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2004 Jean-Francois Brousseau *************** *** 1010,1018 **** ret = 0; ! if ((fd1 = open(file1, O_RDONLY|O_NOFOLLOW, 0)) == -1) fatal("cvs_file_cmp: open: `%s': %s", file1, strerror(errno)); ! if ((fd2 = open(file2, O_RDONLY|O_NOFOLLOW, 0)) == -1) fatal("cvs_file_cmp: open: `%s': %s", file2, strerror(errno)); if (fstat(fd1, &stb1) == -1) --- 1010,1018 ---- ret = 0; ! if ((fd1 = open(file1, O_RDONLY|O_NOFOLLOW)) == -1) fatal("cvs_file_cmp: open: `%s': %s", file1, strerror(errno)); ! if ((fd2 = open(file2, O_RDONLY|O_NOFOLLOW)) == -1) fatal("cvs_file_cmp: open: `%s': %s", file2, strerror(errno)); if (fstat(fd1, &stb1) == -1) *************** *** 1079,1085 **** if (cvs_noexec == 1) return (0); ! if ((src = open(from, O_RDONLY, 0)) == -1) fatal("cvs_file_copy: open: `%s': %s", from, strerror(errno)); if (fstat(src, &st) == -1) --- 1079,1085 ---- if (cvs_noexec == 1) return (0); ! if ((src = open(from, O_RDONLY)) == -1) fatal("cvs_file_copy: open: `%s': %s", from, strerror(errno)); if (fstat(src, &st) == -1)