=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/man/Attic/man.c,v retrieving revision 1.31 retrieving revision 1.32 diff -c -r1.31 -r1.32 *** src/usr.bin/man/Attic/man.c 2005/11/12 00:51:13 1.31 --- src/usr.bin/man/Attic/man.c 2006/12/14 19:25:58 1.32 *************** *** 1,4 **** ! /* $OpenBSD: man.c,v 1.31 2005/11/12 00:51:13 deraadt Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: man.c,v 1.32 2006/12/14 19:25:58 jasper Exp $ */ /* $NetBSD: man.c,v 1.7 1995/09/28 06:05:34 tls Exp $ */ /* *************** *** 40,46 **** #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else ! static char rcsid[] = "$OpenBSD: man.c,v 1.31 2005/11/12 00:51:13 deraadt Exp $"; #endif #endif /* not lint */ --- 40,46 ---- #if 0 static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95"; #else ! static char rcsid[] = "$OpenBSD: man.c,v 1.32 2006/12/14 19:25:58 jasper Exp $"; #endif #endif /* not lint */ *************** *** 624,631 **** print = 1; continue; } else if (!strncmp(buf, D1, sizeof(D1) - 1) || ! !strncmp(buf, D2, sizeof(D2) - 1)) return; if (!print) continue; if (*buf == '\n') --- 624,633 ---- print = 1; continue; } else if (!strncmp(buf, D1, sizeof(D1) - 1) || ! !strncmp(buf, D2, sizeof(D2) - 1)) { ! (void)fclose(fp); return; + } if (!print) continue; if (*buf == '\n')