| 145 | } |
| 146 | |
| 147 | static void copy_email(const struct passwd *pw, struct strbuf *email, |
| 148 | int *is_bogus) |
| 149 | { |
| 150 | /* |
| 151 | * Make up a fake email address |
| 152 | * (name + '@' + hostname [+ '.' + domainname]) |
| 153 | */ |
| 154 | strbuf_addstr(email, pw->pw_name); |
| 155 | strbuf_addch(email, '@'); |
| 156 | |
| 157 | if (!add_mailname_host(email)) |
| 158 | return; /* read from "/etc/mailname" (Debian) */ |
| 159 | add_domainname(email, is_bogus); |
| 160 | } |
| 161 | |
| 162 | const char *ident_default_name(void) |
| 163 | { |
no test coverage detected