diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-13 22:04:36 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-13 22:04:36 +0000 |
commit | 1b99a1058f37ecbe11e86d91331b1722307dd309 (patch) | |
tree | 6856f8efa8d384d0196f71732e8573c85b250218 /usr.sbin/smtpd/lka_session.c | |
parent | c186c66598aa1d157332722bf0503f6450ed4983 (diff) |
split user_backend.c into user.c and user_pwd.c to be consistent with the
backend scheme. Also rename USER_GETPWNAM to USER_PWD.
ok chl@ gilles@
Diffstat (limited to 'usr.sbin/smtpd/lka_session.c')
-rw-r--r-- | usr.sbin/smtpd/lka_session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/lka_session.c b/usr.sbin/smtpd/lka_session.c index 4423cb4199c..5c7398c988c 100644 --- a/usr.sbin/smtpd/lka_session.c +++ b/usr.sbin/smtpd/lka_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_session.c,v 1.15 2011/12/13 21:44:47 gilles Exp $ */ +/* $OpenBSD: lka_session.c,v 1.16 2011/12/13 22:04:35 eric Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -109,7 +109,7 @@ lka_session_envelope_expand(struct lka_session *lks, struct envelope *ep) } bzero(&u, sizeof (u)); - ub = user_backend_lookup(USER_GETPWNAM); + ub = user_backend_lookup(USER_PWD); if (! ub->getbyname(&u, username)) return 0; @@ -511,7 +511,7 @@ lka_session_expand_format(char *buf, size_t len, struct envelope *ep) if (*(p + 1) == '/' || *(p + 1) == '\0') { bzero(&u, sizeof (u)); - ub = user_backend_lookup(USER_GETPWNAM); + ub = user_backend_lookup(USER_PWD); if (! ub->getbyname(&u, ep->agent.mda.as_user)) return 0; @@ -536,7 +536,7 @@ lka_session_expand_format(char *buf, size_t len, struct envelope *ep) *delim = '\0'; bzero(&u, sizeof (u)); - ub = user_backend_lookup(USER_GETPWNAM); + ub = user_backend_lookup(USER_PWD); if (! ub->getbyname(&u, username)) return 0; |