login.c: remove useless indentation on empty lines

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
This commit is contained in:
Roosembert Palacios 2019-12-22 20:26:35 +01:00
parent 8c6f0526ae
commit 9b1123fc77
No known key found for this signature in database
GPG Key ID: CAAAECE5C2242BB7
1 changed files with 5 additions and 5 deletions

View File

@ -526,7 +526,7 @@ void auth(
if (pwd->pw_shell[0] == '\0')
{
setusershell();
char* shell = getusershell();
if (shell != NULL)
@ -547,7 +547,7 @@ void auth(
if (pid == 0)
{
// set user info
// set user info
ok = initgroups(pwd->pw_name, pwd->pw_gid);
if (ok != 0)
@ -652,21 +652,21 @@ void auth(
// close pam session
ok = pam_do(pam_close_session, handle, 0, buf);
if (ok != PAM_SUCCESS)
{
return;
}
ok = pam_do(pam_setcred, handle, PAM_DELETE_CRED, buf);
if (ok != PAM_SUCCESS)
{
return;
}
ok = pam_end(handle, 0);
if (ok != PAM_SUCCESS)
{
pam_diagnose(ok, buf);