From: Wilfried Göesgens Date: Sun, 24 Feb 2008 21:26:35 +0000 (+0000) Subject: * hm, how could this get through? we don't have getpwuid_r on openbsd, and we already... X-Git-Tag: v7.86~2467 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=56590606f07ee51126db76d0982adb285018fb73 * hm, how could this get through? we don't have getpwuid_r on openbsd, and we already check it. --- diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index 00411d6d7..bfa4be317 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -987,6 +987,7 @@ void vcard_newuser(struct ctdluser *usbuf) { vcard_add_prop(v, "n", vname); vcard_add_prop(v, "adr", "adr:;;_;_;_;00000;__"); +#ifdef HAVE_GETPWUID_R /* If using host auth mode, we add an email address based on the login */ if (config.c_auth_mode == AUTHMODE_HOST) { struct passwd pwd; @@ -998,6 +999,7 @@ void vcard_newuser(struct ctdluser *usbuf) { vcard_add_prop(v, "email;internet", buf); } } +#endif /* Everyone gets an email address based on their display name */ snprintf(buf, sizeof buf, "%s@%s", usbuf->fullname, config.c_fqdn);