summaryrefslogtreecommitdiff
path: root/net/tnftpd/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-03-07 17:56:37 +0000
committerjoerg <joerg@pkgsrc.org>2007-03-07 17:56:37 +0000
commiteb1cf5ad8b93f18bd696f812eb9d20ec400038db (patch)
treefeb6a9a7ed82fc7a04c423fbcbd4e3a3bc67e67d /net/tnftpd/patches
parent9533301dd7bddf3c9949ef641ab1d20e780876ba (diff)
downloadpkgsrc-eb1cf5ad8b93f18bd696f812eb9d20ec400038db.tar.gz
Fix build on systems which have pw_change but not _PASSWORD_CHGNOW.
Diffstat (limited to 'net/tnftpd/patches')
-rw-r--r--net/tnftpd/patches/patch-aa16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/tnftpd/patches/patch-aa b/net/tnftpd/patches/patch-aa
new file mode 100644
index 00000000000..c1213703f4a
--- /dev/null
+++ b/net/tnftpd/patches/patch-aa
@@ -0,0 +1,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
+