diff options
author | Halton Huo <halton.huo@sun.com> | 2009-07-20 16:29:46 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-07-20 16:31:01 -0400 |
commit | bcc18427eec07139c9d907ac3995f2c157a7c715 (patch) | |
tree | 6ecd27f30451241418f23dc71fd84d445291684b | |
parent | bb5c86f61775039dca779959eb5822cb1d453bbd (diff) |
Fix connector build on Solaris
Solaris now builds with flags to give getpwnam_r
more standard semantics.
bug 22361
-rw-r--r-- | pam-ck-connector/pam-ck-connector.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/pam-ck-connector/pam-ck-connector.c b/pam-ck-connector/pam-ck-connector.c index 6e41cf5..9bdef51 100644 --- a/pam-ck-connector/pam-ck-connector.c +++ b/pam-ck-connector/pam-ck-connector.c @@ -197,17 +197,10 @@ _util_name_to_uid (const char *username, bufsize = sysconf (_SC_GETPW_R_SIZE_MAX); buf = calloc (sizeof (char), bufsize); -#ifdef __sun - pwdp = getpwnam_r (username, &pwd, buf, bufsize); - if (pwdp == NULL) { - goto out; - } -#else rc = getpwnam_r (username, &pwd, buf, bufsize, &pwdp); if (rc != 0 || pwdp == NULL) { goto out; } -#endif res = pwdp->pw_uid; if (default_gid != NULL) { |