summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2000-07-13 06:45:22 +0000
committertron <tron@NetBSD.org>2000-07-13 06:45:22 +0000
commit7cae32ff497a609d0f891750d4bc66101ddd6844 (patch)
tree122878e8a11e5f80c147dd15477151011f8cace3 /libexec
parentc0f74e1bda3427110253e8be06dd6830e7cfaafe (diff)
Invoke "nroff" with "-S" (safer mode) option because "makewhatis" is
usually invoked by "root".
Diffstat (limited to 'libexec')
-rw-r--r--libexec/makewhatis/makewhatis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/makewhatis/makewhatis.c b/libexec/makewhatis/makewhatis.c
index 9d34b6aea54..85e6cd05bf3 100644
--- a/libexec/makewhatis/makewhatis.c
+++ b/libexec/makewhatis/makewhatis.c
@@ -1,4 +1,4 @@
-/* $NetBSD: makewhatis.c,v 1.11 2000/07/13 06:29:43 tron Exp $ */
+/* $NetBSD: makewhatis.c,v 1.12 2000/07/13 06:45:22 tron Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: makewhatis.c,v 1.11 2000/07/13 06:29:43 tron Exp $");
+__RCSID("$NetBSD: makewhatis.c,v 1.12 2000/07/13 06:45:22 tron Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -516,7 +516,7 @@ nroff(gzFile *in)
(void)dup2(devnull, STDERR_FILENO);
(void)close(devnull);
}
- (void)execlp("nroff", "nroff", "-mandoc", NULL);
+ (void)execlp("nroff", "nroff", "-S", "-man", NULL);
_exit(EXIT_FAILURE);
default:
(void)close(pipefd[1]);