From 56590606f07ee51126db76d0982adb285018fb73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 24 Feb 2008 21:26:35 +0000 Subject: [PATCH] * hm, how could this get through? we don't have getpwuid_r on openbsd, and we already check it. --- citadel/modules/vcard/serv_vcard.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2