]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/shadow.c: my_sgetspent(): Simplify error handling
authorAlejandro Colomar <alx@kernel.org>
Tue, 9 Jan 2024 19:20:07 +0000 (20:20 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 2 Jul 2024 20:52:31 +0000 (22:52 +0200)
commita11ae5cf29b95f0fae16a4b45a1e40c44c6fe8a7
tree9b6a45eb60963c995c7126dde18997a920f2e349
parent7e754cc44747a99755e063e7cdaeeffef8df1185
lib/shadow.c: my_sgetspent(): Simplify error handling

Handle negative values as errors from a2sl(), and reuse its
error-handling code.

Cc: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/shadow.c