[pkg-fso-commits] [SCM] Automatic Display Manager branch, master, updated. debian/0.1-52-g76526e2

Enrico Zini enrico at enricozini.org
Mon Feb 23 18:02:44 UTC 2009


The following commit has been merged in the master branch:
commit 5698a4ffd6c5daa7bd527332df455a468df51448
Author: Enrico Zini <enrico at enricozini.org>
Date:   Mon Feb 2 13:29:52 2009 +0000

    Collapsed a function ran only once

diff --git a/pam-helper.c b/pam-helper.c
index 342ad0f..973b60a 100644
--- a/pam-helper.c
+++ b/pam-helper.c
@@ -181,20 +181,6 @@ int change_uid (const struct passwd *info)
 	return 0;
 }
 
-/*
- * sulog - log a SU command execution result
- */
-static void sulog (const char *tty, int success, const char *oldname, const char *name)
-{
-        if (success) {
-                syslog (LOG_INFO,
-                        "Successful su for %s by %s",name,oldname);
-        } else {
-                syslog (LOG_NOTICE,
-                        "FAILED su for %s by %s",name,oldname);
-        }
-}
-
 /* Signal handler for parent process later */
 static void catch_signals (int sig)
 {
@@ -413,7 +399,8 @@ int main (int argc, char **argv)
 
 	setenv ("PATH", "/bin:/usr/bin", 1);
 
-	sulog (tty, 1, "root", name);	/* save SU information */
+	/* save SU information */
+	syslog (LOG_INFO, "Successful su for %s by %s", name, "root");
 
 #ifdef USE_SYSLOG
 	syslog (LOG_INFO, "+ %s %s:%s", tty,

-- 
Automatic Display Manager



More information about the pkg-fso-commits mailing list