summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubbva <none@none>2006-04-26 15:16:04 -0700
committerbubbva <none@none>2006-04-26 15:16:04 -0700
commit14839a76b454c7de413fbc7c57842b674873ee79 (patch)
tree654b63590a7f3a996011fae8d811dfbdc10150b6
parent5cae022b29ba77f67b91c7d668680190a30cbe1c (diff)
downloadillumos-gate-14839a76b454c7de413fbc7c57842b674873ee79.tar.gz
6249706 rbac utilities have unused variables
Contributed by Stephen Potter <spp@unixsa.net>.
-rw-r--r--usr/src/cmd/auths/auths.c9
-rw-r--r--usr/src/cmd/profiles/profiles.c9
-rw-r--r--usr/src/cmd/roles/roles.c9
3 files changed, 12 insertions, 15 deletions
diff --git a/usr/src/cmd/auths/auths.c b/usr/src/cmd/auths/auths.c
index 0d0771b126..ce48619fd9 100644
--- a/usr/src/cmd/auths/auths.c
+++ b/usr/src/cmd/auths/auths.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 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -124,7 +123,7 @@ show_auths(char *username, char **defauths, int defauth_cnt, int print_name)
return (status);
}
username = pw->pw_name;
- } else if ((pw = getpwnam(username)) == NULL) {
+ } else if (getpwnam(username) == NULL) {
status = EXIT_NON_FATAL;
(void) fprintf(stderr, "%s: %s : ", progname, username);
(void) fprintf(stderr, gettext("No such user\n"));
diff --git a/usr/src/cmd/profiles/profiles.c b/usr/src/cmd/profiles/profiles.c
index 40ba23c6fe..8086494fb8 100644
--- a/usr/src/cmd/profiles/profiles.c
+++ b/usr/src/cmd/profiles/profiles.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 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -127,7 +126,7 @@ show_profs(char *username, int print_flag)
return (status);
}
username = pw->pw_name;
- } else if ((pw = getpwnam(username)) == NULL) {
+ } else if (getpwnam(username) == NULL) {
status = EXIT_NON_FATAL;
(void) fprintf(stderr, "%s: %s : ", progname, username);
(void) fprintf(stderr, gettext("No such user\n"));
diff --git a/usr/src/cmd/roles/roles.c b/usr/src/cmd/roles/roles.c
index c4b29a1cf2..d5467007ca 100644
--- a/usr/src/cmd/roles/roles.c
+++ b/usr/src/cmd/roles/roles.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 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -84,7 +83,7 @@ show_roles(char *username, int print_name)
return (1);
}
username = pw->pw_name;
- } else if ((pw = getpwnam(username)) == NULL) {
+ } else if (getpwnam(username) == NULL) {
(void) fprintf(stderr, "%s: %s : ", progname, username);
(void) fprintf(stderr, gettext("No such user\n"));
return (1);