chpasswd: Disable broken hash check, bug #1124835

This commit is contained in:
Chris Hofstaedtler
2026-01-07 11:08:05 +01:00
parent b1610643c5
commit d44d58db86
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
From: Chris Hofstaedtler <zeha@debian.org>
Date: Wed, 7 Jan 2026 11:07:34 +0100
Subject: chpasswd: Disable broken hash check
See Debian bug #1124835.
---
src/chpasswd.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/src/chpasswd.c b/src/chpasswd.c
index ea96dc7..8d24ae6 100644
--- a/src/chpasswd.c
+++ b/src/chpasswd.c
@@ -574,20 +574,6 @@ int main (int argc, char **argv)
#endif /* USE_PAM */
{
- /*
- * Prevent adding a non valid hash to /etc/shadow and
- * potentialy lock account
- */
-
- if (eflg) {
- if (!is_valid_hash(newpwd)) {
- fprintf (stderr,
- _("%s: (line %jd, user %s) invalid password hash\n"),
- Prog, line, name);
- errors = true;
- continue;
- }
- }
const struct spwd *sp;
struct spwd newsp;
const struct passwd *pw;

View File

@@ -8,3 +8,4 @@ debian/Adapt-login.defs-for-Debian.patch
debian/Stop-building-programs-we-do-not-install.patch
debian/Warn-when-badname-and-variants-are-given.patch
debian/configure.ac-align-exec_prefix-with-prefix.patch
debian/chpasswd-Disable-broken-hash-check.patch