* hm, how could this get through? we don't have getpwuid_r on openbsd, and we already...
authorWilfried Göesgens <willi@citadel.org>
Sun, 24 Feb 2008 21:26:35 +0000 (21:26 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 24 Feb 2008 21:26:35 +0000 (21:26 +0000)
citadel/modules/vcard/serv_vcard.c

index 00411d6d77346df5ca663755976cd12db53aa194..bfa4be31789d2a98953c1c993c4fdde98040d23b 100644 (file)
@@ -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);