diff options
author | drochner <drochner@pkgsrc.org> | 2007-08-10 17:14:40 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2007-08-10 17:14:40 +0000 |
commit | e49e8802cbc2c87877b6649fe4504a12eda9db0e (patch) | |
tree | 5a2ff734ca2751f2afb5e829b3515c5804e82498 /databases/nss_ldap/patches/patch-ah | |
parent | 62e1e5bf36eb971089e610dc6a2bf4054cbed9eb (diff) | |
download | pkgsrc-e49e8802cbc2c87877b6649fe4504a12eda9db0e.tar.gz |
correctly use shadowLastChange as _days_ since the epoch, from Edgar Fuss
per PR pkg/36625
Diffstat (limited to 'databases/nss_ldap/patches/patch-ah')
-rw-r--r-- | databases/nss_ldap/patches/patch-ah | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/nss_ldap/patches/patch-ah b/databases/nss_ldap/patches/patch-ah new file mode 100644 index 00000000000..fcc5fefb7fc --- /dev/null +++ b/databases/nss_ldap/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.3 2007/08/10 17:14:40 drochner Exp $ + +--- ldap-pwd.c.orig 2007-08-09 19:20:45.000000000 +0200 ++++ ldap-pwd.c +@@ -185,7 +185,7 @@ _nss_ldap_parse_pw (LDAPMessage * e, + _nss_ldap_assign_attrval (e, AT (shadowLastChange), &tmp, &buffer, + &buflen); + if (stat == NSS_SUCCESS) +- pw->pw_change += atol(tmp); ++ pw->pw_change += atol(tmp) * (24*60*60); + else + pw->pw_change = 0; + } |