]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove traces of utmpx
authorAlejandro Colomar <alx@kernel.org>
Wed, 21 Dec 2022 17:36:57 +0000 (18:36 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 22 Dec 2022 09:31:43 +0000 (10:31 +0100)
-  USER_NAME_MAX_LENGTH was being calculated in terms of utmpx.  Do it
   in terms of utmp.
-  Remove utmpx support from the whishlist.
-  Remove unused tests about utmpx members.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
configure.ac
doc/WISHLIST
lib/defines.h

index c7dbadd5f9d8e00fb482198eb5de7523ed23273e..2b3635f1c21ca8ff88c29bb453986bfaadbf6f87 100644 (file)
@@ -72,14 +72,6 @@ AC_CHECK_MEMBERS([struct utmp.ut_type,
                   struct utmp.ut_xtime,
                   struct utmp.ut_tv],,,[[#include <utmp.h>]])
 
-AC_CHECK_MEMBERS([struct utmpx.ut_name,
-                  struct utmpx.ut_host,
-                  struct utmpx.ut_syslen,
-                  struct utmpx.ut_addr,
-                  struct utmpx.ut_addr_v6,
-                  struct utmpx.ut_time,
-                  struct utmpx.ut_xtime],,,[[#include <utmpx.h>]])
-
 if test "$ac_cv_header_lastlog_h" = "yes"; then
        AC_CACHE_CHECK(for ll_host in struct lastlog,
                ac_cv_struct_lastlog_ll_host,
index d9003b11efbb36cc4c82aaa28e0d4fe19f73d2f6..5683d87ac9c6ba98f4b700586c1e32967fc035bf 100644 (file)
@@ -26,7 +26,6 @@ New ideas to add to this list are welcome, too.  --marekm
 - vipw: check password files for errors after editing
 - add "maximum time users allowed to stay logged in" limit option to logoutd
 - handle quotes in /etc/environment like the shell does (but sshd doesn't...)
-- better utmpx support (logoutd, ...)
 - better OPIE support (report number of logins left, etc.)
 - new option for /etc/suauth: don't load user's environment (force "su -")
   suggested by Ulisses Alonso Camaro
index 79970f076c50733c9b4c8f3712bd6e55f90a45a1..d40f05defd8195c2de4654697123530427ef3cb7 100644 (file)
@@ -238,8 +238,8 @@ static inline void memzero(void *ptr, size_t size)
 #endif
 
 /* Maximum length of usernames */
-#include <utmpx.h>
-#define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
+#include <utmp.h>
+#define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 
 /* Maximum length of passwd entry */
 #define PASSWD_ENTRY_MAX_LENGTH 32768