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:
committed by
Iker Pedrosa
parent
170b76cdd1
commit
3be7b9d75a
@@ -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
|
||||
|
Reference in New Issue
Block a user