summaryrefslogtreecommitdiff
path: root/net/tnftpd/patches/patch-aa
blob: c1213703f4a0303d983e7e8d5b60a2e65d73132c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aa,v 1.5 2007/03/07 17:56:37 joerg Exp $

--- src/ftpd.c.orig	2007-03-07 17:23:16.000000000 +0000
+++ src/ftpd.c
@@ -3744,7 +3744,11 @@ checkpassword(const struct passwd *pwent
 	expire = pwent->pw_expire;
 #endif
 #if HAVE_PW_CHANGE
+#ifdef _PASSWORD_CHGNOW
 	change = (pwent->pw_change == _PASSWORD_CHGNOW)? now : pwent->pw_change;
+#else
+	change = pwent->pw_change;
+#endif
 #endif
 #endif