From: nekral-guest Date: Tue, 20 Nov 2007 12:10:55 +0000 (+0000) Subject: Fix typo s/method/crypt_method/ X-Git-Tag: 4.1.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a4e65ca1b54365e324ca29fce241b28e49ffbf;p=thirdparty%2Fshadow.git Fix typo s/method/crypt_method/ --- diff --git a/src/chgpasswd.c b/src/chgpasswd.c index e1f95db18..c6d6fc037 100644 --- a/src/chgpasswd.c +++ b/src/chgpasswd.c @@ -191,16 +191,16 @@ int main (int argc, char **argv) usage (); } if (cflg) { - if (0 != strcmp (method, "DES") && - 0 != strcmp (method, "MD5") && + if (0 != strcmp (crypt_method, "DES") && + 0 != strcmp (crypt_method, "MD5") && #ifdef ENCRYPTMETHOD_SELECT - 0 != strcmp (method, "SHA256") && - 0 != strcmp (method, "SHA512") + 0 != strcmp (crypt_method, "SHA256") && + 0 != strcmp (crypt_method, "SHA512") #endif ) { fprintf (stderr, _("%s: unsupported crypt method: %s\n"), - Prog, method); + Prog, crypt_method); usage (); } } diff --git a/src/chpasswd.c b/src/chpasswd.c index f4fe60678..653b7227a 100644 --- a/src/chpasswd.c +++ b/src/chpasswd.c @@ -185,16 +185,16 @@ int main (int argc, char **argv) usage (); } if (cflg) { - if (0 != strcmp (method, "DES") && - 0 != strcmp (method, "MD5") && + if (0 != strcmp (crypt_method, "DES") && + 0 != strcmp (crypt_method, "MD5") && #ifdef ENCRYPTMETHOD_SELECT - 0 != strcmp (method, "SHA256") && - 0 != strcmp (method, "SHA512") + 0 != strcmp (crypt_method, "SHA256") && + 0 != strcmp (crypt_method, "SHA512") #endif ) { fprintf (stderr, _("%s: unsupported crypt method: %s\n"), - Prog, method); + Prog, crypt_method); usage (); } }