Remove traces of utmpx

-  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>
This commit is contained in:
Alejandro Colomar 2022-12-21 18:36:57 +01:00 committed by Iker Pedrosa
parent 170b76cdd1
commit 3be7b9d75a
3 changed files with 2 additions and 11 deletions

View File

@ -72,14 +72,6 @@ AC_CHECK_MEMBERS([struct utmp.ut_type,
struct utmp.ut_xtime, struct utmp.ut_xtime,
struct utmp.ut_tv],,,[[#include <utmp.h>]]) 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 if test "$ac_cv_header_lastlog_h" = "yes"; then
AC_CACHE_CHECK(for ll_host in struct lastlog, AC_CACHE_CHECK(for ll_host in struct lastlog,
ac_cv_struct_lastlog_ll_host, ac_cv_struct_lastlog_ll_host,

View File

@ -26,7 +26,6 @@ New ideas to add to this list are welcome, too. --marekm
- vipw: check password files for errors after editing - vipw: check password files for errors after editing
- add "maximum time users allowed to stay logged in" limit option to logoutd - 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...) - 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.) - better OPIE support (report number of logins left, etc.)
- new option for /etc/suauth: don't load user's environment (force "su -") - new option for /etc/suauth: don't load user's environment (force "su -")
suggested by Ulisses Alonso Camaro suggested by Ulisses Alonso Camaro

View File

@ -238,8 +238,8 @@ static inline void memzero(void *ptr, size_t size)
#endif #endif
/* Maximum length of usernames */ /* Maximum length of usernames */
#include <utmpx.h> #include <utmp.h>
#define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user)) #define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
/* Maximum length of passwd entry */ /* Maximum length of passwd entry */
#define PASSWD_ENTRY_MAX_LENGTH 32768 #define PASSWD_ENTRY_MAX_LENGTH 32768