summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth.c b/auth.c
index 5d23343b9..505102f8a 100644
--- a/auth.c
+++ b/auth.c
@@ -569,8 +569,8 @@ fakepw(void)
569 fake.pw_passwd = 569 fake.pw_passwd =
570 "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK"; 570 "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK";
571 fake.pw_gecos = "NOUSER"; 571 fake.pw_gecos = "NOUSER";
572 fake.pw_uid = privsep_pw->pw_uid; 572 fake.pw_uid = privsep_pw == NULL ? (uid_t)-1 : privsep_pw->pw_uid;
573 fake.pw_gid = privsep_pw->pw_gid; 573 fake.pw_gid = privsep_pw == NULL ? (gid_t)-1 : privsep_pw->pw_gid;
574#ifdef HAVE_PW_CLASS_IN_PASSWD 574#ifdef HAVE_PW_CLASS_IN_PASSWD
575 fake.pw_class = ""; 575 fake.pw_class = "";
576#endif 576#endif