summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--modules/pam_pwhistory/opasswd.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f688036..7bffdbcf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2008-11-25 Thorsten Kukuk <kukuk@thkukuk.de>
+ * modules/pam_pwhistory/opasswd.c (save_old_password): Fix typo.
+
* modules/pam_time/pam_time.c (is_same): Fix check
of correct string length (debian bug #326407).
diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c
index 89452d3f..fd4cd251 100644
--- a/modules/pam_pwhistory/opasswd.c
+++ b/modules/pam_pwhistory/opasswd.c
@@ -381,7 +381,7 @@ save_old_password (pam_handle_t *pamh, const char *user, uid_t uid,
}
else
{
- if (asprintf (&out, "%s:%si%d:%s,%s\n",
+ if (asprintf (&out, "%s:%s:%d:%s,%s\n",
entry.user, entry.uid, entry.count,
entry.old_passwords, oldpass) < 0)
{