From cfa1b3b10f78bc02a9009455fdb65f2bc27cd566 Mon Sep 17 00:00:00 2001 From: sw1tchbl4d3 Date: Sat, 12 Feb 2022 08:07:48 +0100 Subject: [PATCH] Make the hashing failure error message more descriptive This error occurs when the user we try to hash the password for doesn't have a password, as seen in #8. We now mention this, to avoid future confusion. --- rdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdo.c b/rdo.c index cd7be76..8bbb9e4 100644 --- a/rdo.c +++ b/rdo.c @@ -107,7 +107,7 @@ int main(int argc, char** argv) { memset(password, 0, sizeof(password)); if (!hashed_pw) - err(1, "Could not hash password"); + errx(1, "Could not hash password, does your user have a password?"); if (strcmp(shadowEntry->sp_pwdp, hashed_pw) == 0) { setsession(getppid(), ts_ttl);