diff options
Diffstat (limited to 'usr.sbin/smtpd/forward.c')
-rw-r--r-- | usr.sbin/smtpd/forward.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/forward.c b/usr.sbin/smtpd/forward.c index 8289d9678cf..7613f729940 100644 --- a/usr.sbin/smtpd/forward.c +++ b/usr.sbin/smtpd/forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: forward.c,v 1.7 2009/01/01 16:15:47 jacekm Exp $ */ +/* $OpenBSD: forward.c,v 1.8 2009/01/04 00:58:59 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -30,6 +30,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "smtpd.h" @@ -40,10 +41,10 @@ forwards_get(struct aliaseslist *aliases, char *username) struct alias alias; struct alias *aliasp; char pathname[MAXPATHLEN]; - struct passwd *pw; char *buf, *lbuf; size_t len; struct stat sb; + struct passwd *pw; pw = getpwnam(username); if (pw == NULL) |