1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Disable UTMP updating feature.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104514
--- a/acconfig.h
+++ b/acconfig.h
@@ -191,7 +191,7 @@
* If screen is installed with permissions to update /etc/utmp (such
* as if it is installed set-uid root), define UTMPOK.
*/
-#define UTMPOK
+#undef UTMPOK
/* Set LOGINDEFAULT to one (1)
* if you want entries added to /etc/utmp by default, else set it to
@@ -214,7 +214,7 @@
* Set CAREFULUTMP to one (1) if you want that users have at least one
* window per screen session logged in.
*/
-#define LOGOUTOK 1
+#undef LOGOUTOK
#undef CAREFULUTMP
--- a/utmp.c
+++ b/utmp.c
@@ -882,6 +882,7 @@
}
# endif /* BUGGYGETLOGIN */
+#ifdef UTMPOK
#if defined(linux) && defined(GETUTENT)
# undef pututline
@@ -899,4 +900,5 @@
return u->ut_type == u2->ut_type ? u : 0;
}
#endif
+#endif
|