summaryrefslogtreecommitdiff
path: root/src/login/pam_systemd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/pam_systemd.c')
-rw-r--r--src/login/pam_systemd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
index 9250a6903a..4974c51338 100644
--- a/src/login/pam_systemd.c
+++ b/src/login/pam_systemd.c
@@ -114,7 +114,7 @@ static int get_user_data(
}
*ret_pw = pw;
- *ret_username = username ? username : pw->pw_name;
+ *ret_username = username;
return PAM_SUCCESS;
}