diff options
author | Tim Potter <tpot@samba.org> | 2002-05-13 00:06:35 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-05-13 00:06:35 +0000 |
commit | 7f807117d782b81e83a9181d337275a36eeeb301 (patch) | |
tree | dccf94b4ef7f899872ab7a48ae00d81be0dd3412 /source3/nsswitch | |
parent | ee2306d88156af9b03c135889672e6ce3ec49636 (diff) | |
download | samba-7f807117d782b81e83a9181d337275a36eeeb301.tar.gz samba-7f807117d782b81e83a9181d337275a36eeeb301.tar.bz2 samba-7f807117d782b81e83a9181d337275a36eeeb301.zip |
Merge of Solaris winbindd fixes.
(This used to be commit 4bbc584e6ce9cbc32bae715fd3fec0d89f2e271f)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbind_nss.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss.c b/source3/nsswitch/winbind_nss.c index 0a49f5ec96..a396e5551b 100644 --- a/source3/nsswitch/winbind_nss.c +++ b/source3/nsswitch/winbind_nss.c @@ -659,6 +659,17 @@ static NSS_STATUS fill_pwent(struct passwd *result, strcpy(result->pw_shell, pw->pw_shell); + /* The struct passwd for Solaris has some extra fields which must + be initialised or nscd crashes. */ + +#if HAVE_PASSWD_PW_COMMENT + result->pw_comment = ""; +#endif + +#if HAVE_PASSWD_PW_AGE + result->pw_age = ""; +#endif + return NSS_STATUS_SUCCESS; } |