=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pr/pr.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/pr/pr.c 1996/06/26 05:37:54 1.2 --- src/usr.bin/pr/pr.c 1996/08/10 04:41:00 1.3 *************** *** 1,4 **** ! /* $OpenBSD: pr.c,v 1.2 1996/06/26 05:37:54 deraadt Exp $ */ /*- * Copyright (c) 1991 Keith Muller. --- 1,4 ---- ! /* $OpenBSD: pr.c,v 1.3 1996/08/10 04:41:00 imp Exp $ */ /*- * Copyright (c) 1991 Keith Muller. *************** *** 45,51 **** #ifndef lint /* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */ ! static char *rcsid = "$OpenBSD: pr.c,v 1.2 1996/06/26 05:37:54 deraadt Exp $"; #endif /* not lint */ #include --- 45,51 ---- #ifndef lint /* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */ ! static char *rcsid = "$OpenBSD: pr.c,v 1.3 1996/08/10 04:41:00 imp Exp $"; #endif /* not lint */ #include *************** *** 1464,1475 **** /* * only pad with no headers when incomplete last line */ ! if (!incomp) ! return(0); ! if ((dspace && (putchar('\n') == EOF)) || ! (putchar('\n') == EOF)) { pfail(); return(1); } return(0); } --- 1464,1483 ---- /* * only pad with no headers when incomplete last line */ ! if (incomp && ! ((dspace && (putchar('\n') == EOF)) || ! (putchar('\n') == EOF))) { pfail(); return(1); + } + /* + * but honor the formfeed request + */ + if (formfeed) { + if (putchar('\f') == EOF) { + pfail(); + return(1); + } } return(0); }