diff options
| author | jf206706 <none@none> | 2008-04-25 03:37:48 -0700 |
|---|---|---|
| committer | jf206706 <none@none> | 2008-04-25 03:37:48 -0700 |
| commit | 0cfb4e8b28ab16b0cb224619362e8135673714c3 (patch) | |
| tree | ab1696453a681061760559a5e8e8354f06d037de /usr/src | |
| parent | e7eb627d1ca522096231179b750ce579a5278324 (diff) | |
| download | illumos-joyent-0cfb4e8b28ab16b0cb224619362e8135673714c3.tar.gz | |
6515521 praudit should return non-zero when the trail file is not accessible
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/cmd/praudit/main.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/src/cmd/praudit/main.c b/usr/src/cmd/praudit/main.c index 0f3cf4892b..a810a18864 100644 --- a/usr/src/cmd/praudit/main.c +++ b/usr/src/cmd/praudit/main.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 1993-2002 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -86,7 +85,7 @@ main(int argc, char **argv) (void) fprintf(stderr, gettext("praudit: Can't assign %s " "to stdin.\n"), names[i]); - break; + exit(1); } } @@ -104,11 +103,11 @@ main(int argc, char **argv) if (retstat == -2) { (void) printf(gettext("\nusage: praudit [-r/-s] [-l] [-x] " "[-ddel] [-c] filename...\n")); - retstat = -1; + exit(1); + } else if (retstat < 0) { + exit(1); } - if (retstat == 1) - retstat = 0; - return (retstat); + return (0); } |
