=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/isexec.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/rdist/isexec.c 2017/10/27 16:47:08 1.11 +++ src/usr.bin/rdist/isexec.c 2019/06/28 13:35:03 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: isexec.c,v 1.11 2017/10/27 16:47:08 mpi Exp $ */ +/* $OpenBSD: isexec.c,v 1.12 2019/06/28 13:35:03 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -52,7 +52,7 @@ !(statp->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) return(FALSE); - if ((fd = open(file, O_RDONLY, 0)) < 0) + if ((fd = open(file, O_RDONLY, 0)) == -1) return(FALSE); r = read(fd, &hdr, sizeof(hdr)) == sizeof(hdr) &&