summaryrefslogtreecommitdiff
path: root/usr/src/lib/passwdutil/switch_utils.c
diff options
context:
space:
mode:
authorJohn Sonnenschein <John.Sonnenschein@Sun.COM>2008-08-27 20:16:01 -0400
committerJohn Sonnenschein <John.Sonnenschein@Sun.COM>2008-08-27 20:16:01 -0400
commit66e150d7d3c0cb2de3c45c74612784ffd3e73de6 (patch)
tree6bf7bbb02dd4201a137e690849a601015d4e4e33 /usr/src/lib/passwdutil/switch_utils.c
parent4b56a00321e0ce508e55cc5e43e3ad7b00005a39 (diff)
downloadillumos-joyent-66e150d7d3c0cb2de3c45c74612784ffd3e73de6.tar.gz
Contributed by Vinay Simha B.N. <simhavcs@gmail.com> and Beeresh G. <beeresh@gmail.com>
6547525 "*NP*" could use a #define
Diffstat (limited to 'usr/src/lib/passwdutil/switch_utils.c')
-rw-r--r--usr/src/lib/passwdutil/switch_utils.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/lib/passwdutil/switch_utils.c b/usr/src/lib/passwdutil/switch_utils.c
index 77680a36ef..3b2221bff7 100644
--- a/usr/src/lib/passwdutil/switch_utils.c
+++ b/usr/src/lib/passwdutil/switch_utils.c
@@ -19,11 +19,10 @@
* CDDL HEADER END
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/types.h>
#include <nsswitch.h>
@@ -901,10 +900,10 @@ nisplus_getsp_from_master(const char *name, char *domain)
SAFE_STRDUP(shadow, 7);
/*
- * If we got "*NP*" as password, try again with EUID set to
- * the UID of the record-owner.
+ * If we got NOPWDRTR as password, try again with EUID set
+ * to the UID of the record-owner.
*/
- if (strncmp(shadow, "*NP*", 4) == 0) {
+ if (strncmp(shadow, NOPWDRTR, 4) == 0) {
char *p;
uid_t owner_uid;
uid_t euid = geteuid();