* src/su.c: Close the password databases together with syslog.
This commit is contained in:
parent
5d6f4f8ea4
commit
43e65fdd46
@ -7,6 +7,7 @@
|
|||||||
* src/su.c: Cleanup check_perms_nopam().
|
* src/su.c: Cleanup check_perms_nopam().
|
||||||
* src/su.c: Merge environment setting blocks after the creation of
|
* src/su.c: Merge environment setting blocks after the creation of
|
||||||
the session.
|
the session.
|
||||||
|
* src/su.c: Close the password databases together with syslog.
|
||||||
|
|
||||||
2011-06-10 Nicolas François <nicolas.francois@centraliens.net>
|
2011-06-10 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
4
src/su.c
4
src/su.c
@ -868,8 +868,6 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
sulog (caller_tty, true, caller_name, name); /* save SU information */
|
sulog (caller_tty, true, caller_name, name); /* save SU information */
|
||||||
endpwent ();
|
|
||||||
endspent ();
|
|
||||||
#ifdef USE_SYSLOG
|
#ifdef USE_SYSLOG
|
||||||
if (getdef_bool ("SYSLOG_SU_ENAB")) {
|
if (getdef_bool ("SYSLOG_SU_ENAB")) {
|
||||||
SYSLOG ((LOG_INFO, "+ %s %s:%s", caller_tty,
|
SYSLOG ((LOG_INFO, "+ %s %s:%s", caller_tty,
|
||||||
@ -1034,6 +1032,8 @@ int main (int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
endpwent ();
|
||||||
|
endspent ();
|
||||||
/*
|
/*
|
||||||
* This is a workaround for Linux libc bug/feature (?) - the
|
* This is a workaround for Linux libc bug/feature (?) - the
|
||||||
* /dev/log file descriptor is open without the close-on-exec flag
|
* /dev/log file descriptor is open without the close-on-exec flag
|
||||||
|
Loading…
Reference in New Issue
Block a user