diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2015-03-31 19:52:32 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2015-03-31 19:52:32 +0300 |
commit | fe93553a173054507896fab0bc095b44093a8de8 (patch) | |
tree | bf302191dbd739edd68e4e08968ecf3a7c235f5f | |
parent | 79422e9f0c5ddf00da7e4d39ee40c787f33b8492 (diff) | |
download | lightdm-fe93553a173054507896fab0bc095b44093a8de8.tar.gz |
Added debian/patches/dyson-utmp.patch
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | debian/patches/dyson-utmp.patch | 60 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 62 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 1ffe968..f6427d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,7 @@ lightdm (1.10.3-3+dyson1) UNRELEASED; urgency=medium * Added debian/patches/dyson-LC_IDENTIFICATION.patch * Added debian/patches/dyson-cleandist.patch: fix broken distclean target + * Added debian/patches/dyson-utmp.patch -- Igor Pashev <pashev.igor@gmail.com> Tue, 31 Mar 2015 19:05:08 +0300 diff --git a/debian/patches/dyson-utmp.patch b/debian/patches/dyson-utmp.patch new file mode 100644 index 0000000..11f562d --- /dev/null +++ b/debian/patches/dyson-utmp.patch @@ -0,0 +1,60 @@ +Index: lightdm-1.10.3/src/session-child.c +=================================================================== +--- lightdm-1.10.3.orig/src/session-child.c ++++ lightdm-1.10.3/src/session-child.c +@@ -13,7 +13,6 @@ + #include <grp.h> + #include <glib.h> + #include <security/pam_appl.h> +-#include <utmp.h> + #include <utmpx.h> + #include <sys/mman.h> + +@@ -199,9 +198,9 @@ read_xauth (void) + + /* GNU provides this but we can't rely on that so let's make our own version */ + static void +-updwtmpx (const gchar *wtmp_file, struct utmpx *ut) ++lightdm_updwtmpx (const gchar *wtmp_file, struct utmpx *ut) + { +- struct utmp u; ++ struct utmpx u; + + memset (&u, 0, sizeof (u)); + u.ut_type = ut->ut_type; +@@ -217,7 +216,7 @@ updwtmpx (const gchar *wtmp_file, struct + u.ut_tv.tv_sec = ut->ut_tv.tv_sec; + u.ut_tv.tv_usec = ut->ut_tv.tv_usec; + +- updwtmp (wtmp_file, &u); ++ updwtmpx (wtmp_file, &u); + } + + int +@@ -385,7 +384,7 @@ session_child_run (int argc, char **argv + ut.ut_tv.tv_sec = tv.tv_sec; + ut.ut_tv.tv_usec = tv.tv_usec; + +- updwtmpx ("/var/log/btmp", &ut); ++ lightdm_updwtmpx ("/var/log/btmp", &ut); + } + + /* Check account is valid */ +@@ -703,7 +702,7 @@ session_child_run (int argc, char **argv + if (!pututxline (&ut)) + g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); + endutxent (); +- updwtmpx ("/var/log/wtmp", &ut); ++ lightdm_updwtmpx ("/var/log/wtmp", &ut); + } + + waitpid (child_pid, &return_code, 0); +@@ -739,7 +738,7 @@ session_child_run (int argc, char **argv + if (!pututxline (&ut)) + g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); + endutxent (); +- updwtmpx ("/var/log/wtmp", &ut); ++ lightdm_updwtmpx ("/var/log/wtmp", &ut); + } + } + diff --git a/debian/patches/series b/debian/patches/series index f0a9787..6df7c5d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 06_change-user-dirs.patch dyson-LC_IDENTIFICATION.patch dyson-cleandist.patch +dyson-utmp.patch |