Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/makewhatis Invoke "nroff" with "-S" (safer mode) opt...
details: https://anonhg.NetBSD.org/src/rev/7ace99001736
branches: trunk
changeset: 494745:7ace99001736
user: tron <tron%NetBSD.org@localhost>
date: Thu Jul 13 06:45:22 2000 +0000
description:
Invoke "nroff" with "-S" (safer mode) option because "makewhatis" is
usually invoked by "root".
diffstat:
libexec/makewhatis/makewhatis.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6b08280c73de -r 7ace99001736 libexec/makewhatis/makewhatis.c
--- a/libexec/makewhatis/makewhatis.c Thu Jul 13 06:30:16 2000 +0000
+++ b/libexec/makewhatis/makewhatis.c Thu Jul 13 06:45:22 2000 +0000
@@ -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 @@
#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 @@
(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]);
Home |
Main Index |
Thread Index |
Old Index