]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib: replace `USER_NAME_MAX_LENGTH` macro
authorIker Pedrosa <ipedrosa@redhat.com>
Wed, 19 Jul 2023 10:05:09 +0000 (12:05 +0200)
committerSerge Hallyn <serge@hallyn.com>
Wed, 2 Aug 2023 15:13:28 +0000 (10:13 -0500)
commit3b7cc053872cf4ce77fd74dc037f43f34e951e83
tree37bde93d33842b0b0558ed98c00cbb80304997fd
parentfb8f44d73fc64cf26ed10cebf9dce9d0b865501d
lib: replace `USER_NAME_MAX_LENGTH` macro

Replace it by `sysconf(_SC_LOGIN_NAME_MAX)`, which is the maximum
username length supported by the kernel.

Resolves: https://github.com/shadow-maint/shadow/issues/674

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
lib/defines.h
libmisc/chkname.c
src/login.c