=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sdiff/sdiff.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/sdiff/sdiff.c 2006/05/25 03:20:32 1.19 --- src/usr.bin/sdiff/sdiff.c 2006/09/19 05:52:23 1.20 *************** *** 1,4 **** ! /* $OpenBSD: sdiff.c,v 1.19 2006/05/25 03:20:32 ray Exp $ */ /* * Written by Raymond Lai . --- 1,4 ---- ! /* $OpenBSD: sdiff.c,v 1.20 2006/09/19 05:52:23 otto Exp $ */ /* * Written by Raymond Lai . *************** *** 108,114 **** err(2, "error getting file status from %s", source_file); /* Regular file. */ ! if (sb.st_mode & S_IFREG) return (NULL); } else { /* If ``-'' does not exist the user meant stdin. */ --- 108,114 ---- err(2, "error getting file status from %s", source_file); /* Regular file. */ ! if (S_ISREG(sb.st_mode)) return (NULL); } else { /* If ``-'' does not exist the user meant stdin. */