From: Jaroslav Jindrak Date: Wed, 3 May 2023 16:59:50 +0000 (+0200) Subject: chpasswd: fall back to non-PAM code when prefix is used X-Git-Tag: 4.14.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d0beef3bb27ce0d2ee7c814ecf3223d9af1b645;p=thirdparty%2Fshadow.git chpasswd: fall back to non-PAM code when prefix is used The prefix option does not make sense in that scenario and the encryption options already do this. --- diff --git a/src/chpasswd.c b/src/chpasswd.c index 3dec07966..1a1a5d599 100644 --- a/src/chpasswd.c +++ b/src/chpasswd.c @@ -471,7 +471,7 @@ int main (int argc, char **argv) prefix = process_prefix_flag ("-P", argc, argv); #ifdef USE_PAM - if (md5flg || eflg || cflg) { + if (md5flg || eflg || cflg || prefix[0]) { use_pam = false; } #endif /* USE_PAM */