diff options
author | wy83408 <none@none> | 2006-04-03 09:42:10 -0700 |
---|---|---|
committer | wy83408 <none@none> | 2006-04-03 09:42:10 -0700 |
commit | 03c6512857753c00f62e52595dc5def4dd3546e1 (patch) | |
tree | dfd682f2cc71f30feb48f33cab46f9e19cdaf389 /usr/src/lib/passwdutil/utils.c | |
parent | 77c67f2fb257d2c7dfa00389cd9cd7dd5f99a920 (diff) | |
download | illumos-gate-03c6512857753c00f62e52595dc5def4dd3546e1.tar.gz |
6295037 passwdutil.so.1 init function has race in MT app when used with dlopen
--HG--
rename : usr/src/lib/passwdutil/init.c => deleted_files/usr/src/lib/passwdutil/init.c
Diffstat (limited to 'usr/src/lib/passwdutil/utils.c')
-rw-r--r-- | usr/src/lib/passwdutil/utils.c | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/usr/src/lib/passwdutil/utils.c b/usr/src/lib/passwdutil/utils.c index f98e342574..f723472465 100644 --- a/usr/src/lib/passwdutil/utils.c +++ b/usr/src/lib/passwdutil/utils.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -46,6 +46,29 @@ #define MAXWEEKS -1 #define WARNWEEKS -1 +extern repops_t files_repops, nis_repops, + nisplus_repops, ldap_repops, nss_repops; + +repops_t *rops[REP_LAST+1] = { + NULL, + &files_repops, + &nis_repops, + NULL, + &nisplus_repops, + NULL, + NULL, + NULL, + &ldap_repops, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + NULL, + &nss_repops, +}; + void free_pwd(struct passwd *pw) { |