From 0ce83be801ab87f424ede1eea575c37775cc258f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 19 Jan 2015 14:17:23 +0100 Subject: [PATCH] ocpasswd: corrected fallback to MD5 crypt --- src/ocpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocpasswd.c b/src/ocpasswd.c index aced94ab..515821ec 100644 --- a/src/ocpasswd.c +++ b/src/ocpasswd.c @@ -83,7 +83,7 @@ crypt_int(const char *fpasswd, const char *username, const char *groupname, cr_passwd = crypt(passwd, salt); if (cr_passwd == NULL) { /* try MD5 */ - salt[1] = 1; + salt[1] = '1'; cr_passwd = crypt(passwd, salt); } if (cr_passwd == NULL) {