=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/filename.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/less/filename.c 2019/05/07 14:26:38 1.28 --- src/usr.bin/less/filename.c 2019/06/28 13:35:01 1.29 *************** *** 191,197 **** */ qpathname = shell_unquote(pathname); f = open(qpathname, O_RDONLY); ! if (f < 0) { free(pathname); pathname = NULL; } else { --- 191,197 ---- */ qpathname = shell_unquote(pathname); f = open(qpathname, O_RDONLY); ! if (f == -1) { free(pathname); pathname = NULL; } else { *************** *** 713,719 **** struct stat statbuf; r = stat(filename, &statbuf); ! if (r < 0) { m = errno_message(filename); } else if (force_open) { m = NULL; --- 713,719 ---- struct stat statbuf; r = stat(filename, &statbuf); ! if (r == -1) { m = errno_message(filename); } else if (force_open) { m = NULL;