~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to src/local/dotforward.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2012-03-20 13:47:16 UTC
  • mfrom: (1.1.33)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20120320134716-v7ab94fmor2z9pvp
Tags: upstream-2.9.1
ImportĀ upstreamĀ versionĀ 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
 
75
75
#include <mypwd.h>
76
76
#include <bounce.h>
 
77
#include <defer.h>
77
78
#include <been_here.h>
78
79
#include <mail_params.h>
79
80
#include <mail_conf.h>
126
127
     * Skip non-existing users. The mailbox delivery routine will catch the
127
128
     * error.
128
129
     */
129
 
    if ((mypwd = mypwnam(state.msg_attr.user)) == 0)
 
130
    if ((errno = mypwnam_err(state.msg_attr.user, &mypwd)) != 0) {
 
131
        msg_warn("error looking up passwd info for %s: %m",
 
132
                 state.msg_attr.user);
 
133
        dsb_simple(state.msg_attr.why, "4.0.0", "user lookup error");
 
134
        *statusp = defer_append(BOUNCE_FLAGS(state.request),
 
135
                                BOUNCE_ATTR(state.msg_attr));
 
136
        return (YES);
 
137
    }
 
138
    if (mypwd == 0)
130
139
        return (NO);
131
140
 
132
141
    /*