=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/isexec.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/rdist/isexec.c 2019/06/28 13:35:03 1.12 --- src/usr.bin/rdist/isexec.c 2021/10/24 21:24:17 1.13 *************** *** 1,4 **** ! /* $OpenBSD: isexec.c,v 1.12 2019/06/28 13:35:03 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: isexec.c,v 1.13 2021/10/24 21:24:17 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 52,58 **** !(statp->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) return(FALSE); ! if ((fd = open(file, O_RDONLY, 0)) == -1) return(FALSE); r = read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) && --- 52,58 ---- !(statp->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) return(FALSE); ! if ((fd = open(file, O_RDONLY)) == -1) return(FALSE); r = read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) &&