summaryrefslogtreecommitdiffstats
path: root/contrib/groff
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-07-30 05:20:17 +0000
committerimp <imp@FreeBSD.org>1999-07-30 05:20:17 +0000
commit937ff682c07f453beefdacfdce0ddd8afc82fad6 (patch)
tree0f25b0af73acd238889d9fdc72a59f499f19784b /contrib/groff
parent7f07913dd9d4907b1588c65e612d6a27d349a7e5 (diff)
downloadFreeBSD-src-937ff682c07f453beefdacfdce0ddd8afc82fad6.zip
FreeBSD-src-937ff682c07f453beefdacfdce0ddd8afc82fad6.tar.gz
Force safer mode of operation for man's use of *roff.
Obtained from: OpenBSD's nroff.sh 1.2 by aaron@openbsd.org
Diffstat (limited to 'contrib/groff')
-rwxr-xr-xcontrib/groff/nroff/nroff.sh4
-rwxr-xr-xcontrib/groff/src/roff/nroff/nroff.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/contrib/groff/nroff/nroff.sh b/contrib/groff/nroff/nroff.sh
index 02cd72f..25d9db2 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 02cd72f..25d9db2 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+"$@"}
OpenPOWER on IntegriCloud