]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: fix getgrouplist() usage for 64BE
authorKarel Zak <kzak@redhat.com>
Mon, 21 Dec 2015 14:50:58 +0000 (15:50 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Dec 2015 14:50:58 +0000 (15:50 +0100)
commit8b7ef916893de143828d2e2670020d955887bb22
tree98b490c227142e7640d4a31276c6cb7ef7d040f4
parent514f593060449f4df16fb7366dea1ed34bfbc115
lslogins: fix getgrouplist() usage for 64BE

on ppc64:
 $ lslogins kzak
 $ lslogins: cannot allocate 85899345920 bytes: Cannot allocate memory

because

  (int *) len

where len is pointer to size_t is bad idea...

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/lslogins.c