=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/file.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/file/file.c 2002/11/29 00:27:03 1.9 --- src/usr.bin/file/file.c 2002/12/15 13:30:17 1.10 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.9 2002/11/29 00:27:03 millert Exp $ */ /* * file - find type of a file or files - main program. --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.10 2002/12/15 13:30:17 henning Exp $ */ /* * file - find type of a file or files - main program. *************** *** 27,33 **** * 4. This notice may not be removed or altered. */ #ifndef lint ! static char *moduleid = "$OpenBSD: file.c,v 1.9 2002/11/29 00:27:03 millert Exp $"; #endif /* lint */ #include --- 27,33 ---- * 4. This notice may not be removed or altered. */ #ifndef lint ! static char *moduleid = "$OpenBSD: file.c,v 1.10 2002/12/15 13:30:17 henning Exp $"; #endif /* lint */ #include *************** *** 316,322 **** if ((fd = open(inname, O_RDONLY)) < 0) { /* We can't open it, but we were able to stat it. */ ! if (sb.st_mode & 0002) ckfputs("writeable, ", stdout); if (sb.st_mode & 0111) ckfputs("executable, ", stdout); ckfprintf(stdout, "can't read `%s' (%s).\n", inname, strerror(errno)); --- 316,322 ---- if ((fd = open(inname, O_RDONLY)) < 0) { /* We can't open it, but we were able to stat it. */ ! if (sb.st_mode & 0002) ckfputs("writable, ", stdout); if (sb.st_mode & 0111) ckfputs("executable, ", stdout); ckfprintf(stdout, "can't read `%s' (%s).\n", inname, strerror(errno));