diff options
| author | christos <christos@NetBSD.org> | 2014-09-18 13:58:20 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2014-09-18 13:58:20 +0000 |
| commit | 2c32905e1bfbd923da80f3b2b717ca983295f8ad (patch) | |
| tree | ee0132025875532ffa8e7e9480e8dece1419fde2 /lib/libc/gen/fmtmsg.c | |
| parent | 658a9a8f623a74a2f8d0189494c4822ef512350a (diff) | |
make more descriptors that we open as close-on-exec
Diffstat (limited to 'lib/libc/gen/fmtmsg.c')
| -rw-r--r-- | lib/libc/gen/fmtmsg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/fmtmsg.c b/lib/libc/gen/fmtmsg.c index 5bd4c5f07cc..1fd683b37ee 100644 --- a/lib/libc/gen/fmtmsg.c +++ b/lib/libc/gen/fmtmsg.c @@ -1,4 +1,4 @@ -/* $NetBSD: fmtmsg.c,v 1.5 2012/03/20 16:36:05 matt Exp $ */ +/* $NetBSD: fmtmsg.c,v 1.6 2014/09/18 13:58:20 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: fmtmsg.c,v 1.5 2012/03/20 16:36:05 matt Exp $"); +__RCSID("$NetBSD: fmtmsg.c,v 1.6 2014/09/18 13:58:20 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include <fmtmsg.h> @@ -213,7 +213,7 @@ fmtmsg(long classification, const char *label, int severity, } /* Similar to MM_PRINT but ignoring $MSGVERB. */ if (classification & MM_CONSOLE) { - if ((console = fopen(_PATH_CONSOLE, "w")) != NULL) { + if ((console = fopen(_PATH_CONSOLE, "we")) != NULL) { if (writeit(console, MM_VERBALL, label, sevstr, text, action, tag) < 0) result |= MM_NOCON; |
