Am 10/3/2011 8:16, schrieb Jonathan Nieder: > +static int add_mailname_host(char *buf, size_t len) > +{ > + FILE *mailname; > + > + mailname = fopen("/etc/mailname", "r"); > + if (!mailname) { > + if (errno != ENOENT) > + warning("cannot open /etc/mailname: %s", > + strerror(errno)); This warns on EACCES. Is that OK? (Just asking, I have no opinion.) -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html