mirror of https://github.com/fairyglade/ly.git
login.c: remove useless indentation on empty lines
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
This commit is contained in:
parent
8c6f0526ae
commit
9b1123fc77
10
src/login.c
10
src/login.c
|
|
@ -526,7 +526,7 @@ void auth(
|
||||||
if (pwd->pw_shell[0] == '\0')
|
if (pwd->pw_shell[0] == '\0')
|
||||||
{
|
{
|
||||||
setusershell();
|
setusershell();
|
||||||
|
|
||||||
char* shell = getusershell();
|
char* shell = getusershell();
|
||||||
|
|
||||||
if (shell != NULL)
|
if (shell != NULL)
|
||||||
|
|
@ -547,7 +547,7 @@ void auth(
|
||||||
|
|
||||||
if (pid == 0)
|
if (pid == 0)
|
||||||
{
|
{
|
||||||
// set user info
|
// set user info
|
||||||
ok = initgroups(pwd->pw_name, pwd->pw_gid);
|
ok = initgroups(pwd->pw_name, pwd->pw_gid);
|
||||||
|
|
||||||
if (ok != 0)
|
if (ok != 0)
|
||||||
|
|
@ -652,21 +652,21 @@ void auth(
|
||||||
|
|
||||||
// close pam session
|
// close pam session
|
||||||
ok = pam_do(pam_close_session, handle, 0, buf);
|
ok = pam_do(pam_close_session, handle, 0, buf);
|
||||||
|
|
||||||
if (ok != PAM_SUCCESS)
|
if (ok != PAM_SUCCESS)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ok = pam_do(pam_setcred, handle, PAM_DELETE_CRED, buf);
|
ok = pam_do(pam_setcred, handle, PAM_DELETE_CRED, buf);
|
||||||
|
|
||||||
if (ok != PAM_SUCCESS)
|
if (ok != PAM_SUCCESS)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ok = pam_end(handle, 0);
|
ok = pam_end(handle, 0);
|
||||||
|
|
||||||
if (ok != PAM_SUCCESS)
|
if (ok != PAM_SUCCESS)
|
||||||
{
|
{
|
||||||
pam_diagnose(ok, buf);
|
pam_diagnose(ok, buf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue