diff options
author | joerg <joerg@pkgsrc.org> | 2007-03-07 17:56:37 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-03-07 17:56:37 +0000 |
commit | 1340a661d9cd26832aa4c5f77017d538d7353a82 (patch) | |
tree | feb6a9a7ed82fc7a04c423fbcbd4e3a3bc67e67d /net | |
parent | f78f3153108d7c9a7a6416e2ec1b83a345c806bd (diff) | |
download | pkgsrc-1340a661d9cd26832aa4c5f77017d538d7353a82.tar.gz |
Fix build on systems which have pw_change but not _PASSWORD_CHGNOW.
Diffstat (limited to 'net')
-rw-r--r-- | net/tnftpd/distinfo | 3 | ||||
-rw-r--r-- | net/tnftpd/patches/patch-aa | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/net/tnftpd/distinfo b/net/tnftpd/distinfo index 6aa065244e7..01db2380034 100644 --- a/net/tnftpd/distinfo +++ b/net/tnftpd/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.8 2007/03/01 14:01:21 salo Exp $ +$NetBSD: distinfo,v 1.9 2007/03/07 17:56:37 joerg Exp $ SHA1 (tnftpd-20061217.tar.gz) = a81e69c648397c15541683910495037683d87d2f RMD160 (tnftpd-20061217.tar.gz) = 9f098e35e549a202a7a392898095ee91f34e8604 Size (tnftpd-20061217.tar.gz) = 187602 bytes +SHA1 (patch-aa) = febc5e934b3bc5f83758bb966e30d5d17ca10af7 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 + |