]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login, mount: fix __SC_GETPW_R_SIZE_MAX usage
authorKarel Zak <kzak@redhat.com>
Tue, 15 Dec 2015 11:25:56 +0000 (12:25 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Dec 2015 11:33:34 +0000 (12:33 +0100)
commitf7ac9e71b18fa7314151f2ab65ee0bdd2ea89c07
treed089c7b2317441444ab356d17fb200286aa0a550
parentb5febe04898672019bd8aa1234132d3ad8e5229b
login, mount: fix __SC_GETPW_R_SIZE_MAX usage

sysconf(_SC_GETPW_R_SIZE_MAX) returns initial suggested size for pwd
buffer (see getpwnam_r man page or POSIX). This is not large enough in
some cases.

Yes, this sysconf option is misnamed (should be _SC_GETPW_R_SIZE_MIN).

Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h
libmount/src/utils.c
login-utils/login.c