diff options
Diffstat (limited to 'usr/src/lib/libtsnet/common/tsol_gettpent.c')
-rw-r--r-- | usr/src/lib/libtsnet/common/tsol_gettpent.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/lib/libtsnet/common/tsol_gettpent.c b/usr/src/lib/libtsnet/common/tsol_gettpent.c index ab20c85620..467bd8fccb 100644 --- a/usr/src/lib/libtsnet/common/tsol_gettpent.c +++ b/usr/src/lib/libtsnet/common/tsol_gettpent.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * From "tsol_gettpent.c 7.13 00/10/13 SMI; TSOL 2.x" @@ -122,7 +122,7 @@ tsol_gettpent(void) } tsol_tpent_t * -tsol_fgettpent(FILE *f) +tsol_fgettpent(FILE *f, boolean_t *error) { int err = 0; char *errstr = NULL; @@ -143,11 +143,13 @@ tsol_fgettpent(FILE *f) * Loop until we find a non-blank, non-comment line, or * until EOF. No need to log blank lines, comments. */ - if (err != LTSNET_EMPTY) + if (err != LTSNET_EMPTY) { (void) fprintf(stderr, "%s: %.32s%s: %s\n", gettext("Error parsing tnrhtp file"), errstr, (strlen(errstr) > 32)? "...": "", (char *)tsol_strerror(err, errno)); + *error = B_TRUE; + } _nss_XbyY_fgets(f, &arg); tpstrp = (tsol_tpstr_t *)NSS_XbyY_FINI(&arg); if (tpstrp == NULL) /* EOF */ |