Set the default password to md5, patch by Joshua Jackson
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 4 Sep 2003 08:21:36 +0000 (08:21 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 4 Sep 2003 08:21:36 +0000 (08:21 -0000)
loginutils/passwd.c

index e8577066afbede54a6e92e334887963fbf73ef53..269e529f325eccc8886fac3259735651f221ba2a 100644 (file)
@@ -140,7 +140,7 @@ extern int passwd_main(int argc, char **argv)
        char *name;
        char *myname;
        int flag;
-       int algo = 0;                           /* -a - password algorithm */
+       int algo = 1;                           /* -a - password algorithm */
        int lflg = 0;                           /* -l - lock account */
        int uflg = 0;                           /* -u - unlock account */
        int dflg = 0;                           /* -d - delete password */