summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-01-10 10:41:47 +0000
committermpp <mpp@FreeBSD.org>1996-01-10 10:41:47 +0000
commit93959e6d0e4f44db387dbe1dd13ae0f56b3c5ea7 (patch)
tree2f58faea0b754ce16b8ce738e9c93834e3ecb127 /gnu/usr.bin
parentae5f21438b72971ff8561c6a10691e25724e7278 (diff)
downloadFreeBSD-src-93959e6d0e4f44db387dbe1dd13ae0f56b3c5ea7.zip
FreeBSD-src-93959e6d0e4f44db387dbe1dd13ae0f56b3c5ea7.tar.gz
Correct the path used to invoke "pr" if the "-l" option to diff is
specified. Also invoke "pr" with "-F" instead of the invalid "-f" option. Obtained from: NetBSD-bugs mailing list (PR# 1896)
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/diff/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/diff/util.c b/gnu/usr.bin/diff/util.c
index bbc3bff..4cdb9ea 100644
--- a/gnu/usr.bin/diff/util.c
+++ b/gnu/usr.bin/diff/util.c
@@ -20,7 +20,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "diff.h"
#ifndef PR_PROGRAM
-#define PR_PROGRAM "/bin/pr"
+#define PR_PROGRAM "/usr/bin/pr"
#endif
/* Queue up one-line messages to be printed at the end,
@@ -208,7 +208,7 @@ begin_output ()
close (pipes[0]);
}
- execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, 0);
+ execl (PR_PROGRAM, PR_PROGRAM, "-F", "-h", name, 0);
pfatal_with_name (PR_PROGRAM);
}
else
@@ -222,7 +222,7 @@ begin_output ()
char *command = xmalloc (4 * strlen (name) + strlen (PR_PROGRAM) + 10);
char *p;
char const *a = name;
- sprintf (command, "%s -f -h ", PR_PROGRAM);
+ sprintf (command, "%s -F -h ", PR_PROGRAM);
p = command + strlen (command);
SYSTEM_QUOTE_ARG (p, a);
*p = 0;
OpenPOWER on IntegriCloud