summaryrefslogtreecommitdiff
path: root/debian/patches/utmp.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/utmp.c.patch')
-rw-r--r--debian/patches/utmp.c.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/debian/patches/utmp.c.patch b/debian/patches/utmp.c.patch
deleted file mode 100644
index 624303f..0000000
--- a/debian/patches/utmp.c.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-Index: shadow-4.1.5/libmisc/utmp.c
-===================================================================
---- shadow-4.1.5.orig/libmisc/utmp.c 2012-05-29 01:00:07.623017148 +0000
-+++ shadow-4.1.5/libmisc/utmp.c 2012-05-29 01:08:05.294474465 +0000
-@@ -32,15 +32,19 @@
-
- #include <config.h>
-
--#include "defines.h"
--#include "prototypes.h"
--
--#include <utmp.h>
-
- #ifdef USE_UTMPX
- #include <utmpx.h>
-+#define utmp utmpx
-+#define updwtmp updwtmpx
-+#define pututline pututxline
-+#else
-+#include <utmp.h>
- #endif
-
-+#include "defines.h"
-+#include "prototypes.h"
-+
- #include <assert.h>
- #include <netdb.h>
- #include <stdio.h>
-@@ -281,6 +285,10 @@
- /* ut_exit is only for DEAD_PROCESS */
- utent->ut_session = getsid (0);
- if (gettimeofday (&tv, NULL) == 0) {
-+#ifdef USE_UTMPX
-+ utent->ut_tv.tv_sec = tv.tv_sec;
-+ utent->ut_tv.tv_usec = tv.tv_usec;
-+#else
- #ifdef HAVE_STRUCT_UTMP_UT_TIME
- utent->ut_time = tv.tv_sec;
- #endif /* HAVE_STRUCT_UTMP_UT_TIME */
-@@ -291,6 +299,7 @@
- utent->ut_tv.tv_sec = tv.tv_sec;
- utent->ut_tv.tv_usec = tv.tv_usec;
- #endif /* HAVE_STRUCT_UTMP_UT_TV */
-+#endif
- }
-
- return utent;