X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fvcard%2Fserv_vcard.c;h=bfa4be31789d2a98953c1c993c4fdde98040d23b;hb=56590606f07ee51126db76d0982adb285018fb73;hp=00411d6d77346df5ca663755976cd12db53aa194;hpb=2296667b6c9a9b2f56d9c8bfc29ce5d2a9618852;p=citadel.git 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);