]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: fix realloc() loop allocation size
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:08:22 +0000 (20:08 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:30:12 +0000 (20:30 +0200)
commit62104e69455c3add88adc360381176f3e83bda28
tree86908e607d069ec9e9cc2dc0b2671dacaada2385
parentecdfc9aa701b4f406c239b6e163a45a5cc5b4a8c
lslogins: fix realloc() loop allocation size

If stat() fails the realloc loop would always try to allocate zero
bytes.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
login-utils/lslogins.c