From 004388ebfdfe2ed7dfd2d153a876dfcc22d2c006 Mon Sep 17 00:00:00 2001 From: casper Date: Mon, 1 May 2006 11:23:49 -0700 Subject: 4916205 libcmd should not use file operation routines from C library 6234782 Kerberos and GSSAPI should not use fopen 6259671 vold won't be killed by TERM signal when several removable devices are managed 6386770 pam_authenticate can fail if open files are >= 255 and the soft fd limit is greater than 256 6414401 Remove shadow stdio implementation obsoleted by PSARC 2006/162 6414404 __rpc_openchild never called and not exported by library 6416815 ON needs to be hardened against the 32-bit fopen/255 problem --HG-- rename : usr/src/lib/libnsl/common/nsl_stdio_prv.c => deleted_files/usr/src/lib/libnsl/common/nsl_stdio_prv.c rename : usr/src/lib/libnsl/include/nsl_stdio_prv.h => deleted_files/usr/src/lib/libnsl/include/nsl_stdio_prv.h rename : usr/src/lib/libnsl/rpc/openchild.c => deleted_files/usr/src/lib/libnsl/rpc/openchild.c rename : usr/src/lib/libnsl/rpc/xdr_stdio_prv.c => deleted_files/usr/src/lib/libnsl/rpc/xdr_stdio_prv.c rename : usr/src/lib/libresolv2/req.flg => deleted_files/usr/src/lib/libresolv2/req.flg rename : usr/src/lib/nsswitch/compat/req.flg => deleted_files/usr/src/lib/nsswitch/compat/req.flg rename : usr/src/lib/nsswitch/files/req.flg => deleted_files/usr/src/lib/nsswitch/files/req.flg rename : usr/src/lib/nsswitch/req.flg => deleted_files/usr/src/lib/nsswitch/req.flg rename : usr/src/lib/nsswitch/user/req.flg => deleted_files/usr/src/lib/nsswitch/user/req.flg --- usr/src/lib/mpss/common/mpss.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'usr/src/lib/mpss') diff --git a/usr/src/lib/mpss/common/mpss.c b/usr/src/lib/mpss/common/mpss.c index 74239ce994..c052953d87 100644 --- a/usr/src/lib/mpss/common/mpss.c +++ b/usr/src/lib/mpss/common/mpss.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -319,7 +318,7 @@ __mpssmain() * and thus come from the default C locale. */ if ((errfile = getenv(ENV_MPSSERRFILE)) != NULL) { - errfp = fopen(errfile, "a"); + errfp = fopen(errfile, "aF"); if (errfp) { locale = setlocale(LC_MESSAGES, ""); } else { @@ -362,7 +361,7 @@ __mpssmain() * Open specified cfg file or default one. */ if (cfgfile = getenv(ENV_MPSSCFGFILE)) { - fp = fopen(cfgfile, "r"); + fp = fopen(cfgfile, "rF"); if (!fp) { mpsserr(errfp, dgettext(TEXT_DOMAIN, "%s: cannot open configuration file: %s [%s]\n"), @@ -370,7 +369,7 @@ __mpssmain() } } else { cfgfile = DEF_MPSSCFGFILE; - fp = fopen(cfgfile, "r"); + fp = fopen(cfgfile, "rF"); } execname = mygetexecname(); -- cgit v1.2.3