~ubuntu-branches/debian/sid/postfix/sid

« back to all changes in this revision

Viewing changes to src/local/include.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2012-03-20 13:47:16 UTC
  • mfrom: (1.1.34) (39.1.16 trunk)
  • Revision ID: package-import@ubuntu.com-20120320134716-o62kosz3odzt1rh6
Tags: 2.9.1-2
Drop unnecessary openssl check, since sonames will save us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#include <unistd.h>
50
50
#include <string.h>
51
51
#include <fcntl.h>
 
52
#include <errno.h>
52
53
 
53
54
/* Utility library. */
54
55
 
156
157
     * that is owned by their victim.
157
158
     */
158
159
    if (usr_attr.uid == 0) {
159
 
        if ((file_pwd = mypwuid(st.st_uid)) == 0) {
160
 
            msg_warn("cannot find username for uid %ld", (long) st.st_uid);
 
160
        if ((errno = mypwuid_err(st.st_uid, &file_pwd)) != 0 || file_pwd == 0) {
 
161
            msg_warn(errno ? "cannot find username for uid %ld: %m" :
 
162
                     "cannot find username for uid %ld", (long) st.st_uid);
161
163
            msg_warn("%s: cannot find :include: file owner username", path);
162
164
            dsb_simple(state.msg_attr.why, "4.3.5",
163
165
                       "mail system configuration error");