[Pkg-shadow-commits] r3354 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Mon Jun 13 18:27:17 UTC 2011
Author: nekral-guest
Date: 2011-06-13 18:27:17 +0000 (Mon, 13 Jun 2011)
New Revision: 3354
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/su.c
Log:
* src/su.c: Close the password databases together with syslog.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2011-06-13 18:27:12 UTC (rev 3353)
+++ upstream/trunk/ChangeLog 2011-06-13 18:27:17 UTC (rev 3354)
@@ -7,6 +7,7 @@
* src/su.c: Cleanup check_perms_nopam().
* src/su.c: Merge environment setting blocks after the creation of
the session.
+ * src/su.c: Close the password databases together with syslog.
2011-06-10 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/src/su.c
===================================================================
--- upstream/trunk/src/su.c 2011-06-13 18:27:12 UTC (rev 3353)
+++ upstream/trunk/src/su.c 2011-06-13 18:27:17 UTC (rev 3354)
@@ -868,8 +868,6 @@
}
sulog (caller_tty, true, caller_name, name); /* save SU information */
- endpwent ();
- endspent ();
#ifdef USE_SYSLOG
if (getdef_bool ("SYSLOG_SU_ENAB")) {
SYSLOG ((LOG_INFO, "+ %s %s:%s", caller_tty,
@@ -1034,6 +1032,8 @@
}
}
+ endpwent ();
+ endspent ();
/*
* This is a workaround for Linux libc bug/feature (?) - the
* /dev/log file descriptor is open without the close-on-exec flag
More information about the Pkg-shadow-commits
mailing list