]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/gshadow.c: fgetsgent(): Don't use static variables
authorAlejandro Colomar <alx@kernel.org>
Mon, 22 Jul 2024 17:34:21 +0000 (19:34 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 6 Dec 2025 01:23:18 +0000 (19:23 -0600)
commit5e30a34a930e26c885e8c90d42bfb2f68c7e88fe
treed4bf6a62b792a443b818d1c7f9b695a3d6e93168
parentc6178b722f61861fb0a622ca36b7c7ad83b8d100
lib/gshadow.c: fgetsgent(): Don't use static variables

BTW, getline(3) says we are responsible for free(3)ing the buffer on
error.

Reported-by: Chris Hofstaedtler <zeha@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/shadow/gshadow/fgetsgent.c