From 758ce8b4e2066f8a1e3b930fbb5d3930e014c82e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 30 Jul 1999 05:20:17 +0000 Subject: [PATCH] Force safer mode of operation for man's use of *roff. Obtained from: OpenBSD's nroff.sh 1.2 by aaron@openbsd.org --- contrib/groff/nroff/nroff.sh | 4 ++-- contrib/groff/src/roff/nroff/nroff.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/groff/nroff/nroff.sh b/contrib/groff/nroff/nroff.sh index 02cd72f0cd2..25d9db26882 100755 --- a/contrib/groff/nroff/nroff.sh +++ b/contrib/groff/nroff/nroff.sh @@ -31,7 +31,7 @@ do echo "$prog: option $1 requires an argument" >&2 exit 1 ;; - -i|-[mrno]*) + -i|-S|-[mrno]*) opts="$opts $1"; ;; @@ -65,4 +65,4 @@ done # This shell script is intended for use with man, so warnings are # probably not wanted. Also load nroff-style character definitions. -exec groff -Wall -mtty-char $T $opts ${1+"$@"} +exec groff -S -Wall -mtty-char $T $opts ${1+"$@"} diff --git a/contrib/groff/src/roff/nroff/nroff.sh b/contrib/groff/src/roff/nroff/nroff.sh index 02cd72f0cd2..25d9db26882 100755 --- a/contrib/groff/src/roff/nroff/nroff.sh +++ b/contrib/groff/src/roff/nroff/nroff.sh @@ -31,7 +31,7 @@ do echo "$prog: option $1 requires an argument" >&2 exit 1 ;; - -i|-[mrno]*) + -i|-S|-[mrno]*) opts="$opts $1"; ;; @@ -65,4 +65,4 @@ done # This shell script is intended for use with man, so warnings are # probably not wanted. Also load nroff-style character definitions. -exec groff -Wall -mtty-char $T $opts ${1+"$@"} +exec groff -S -Wall -mtty-char $T $opts ${1+"$@"}