From fe93553a173054507896fab0bc095b44093a8de8 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 31 Mar 2015 19:52:32 +0300 Subject: Added debian/patches/dyson-utmp.patch --- debian/changelog | 1 + debian/patches/dyson-utmp.patch | 60 +++++++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 62 insertions(+) create mode 100644 debian/patches/dyson-utmp.patch 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 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 + #include + #include +-#include + #include + #include + +@@ -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 -- cgit v1.2.3