]> git.ipfire.org Git - thirdparty/shadow.git/commit
useradd: fix write_full() return value
authorIker Pedrosa <ipedrosa@redhat.com>
Mon, 9 Sep 2024 08:36:17 +0000 (10:36 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 13 Sep 2024 07:44:51 +0000 (09:44 +0200)
commit8903b94c86c978e8abef623358fd3e4629c06967
tree8a5a1807a09908aa3d41bc59aad8422e90a49835
parentb2b37863a62af83deb21284ae156aa425bed0cb9
useradd: fix write_full() return value

write_full() returns -1 on error and useradd was checking another value.

Closes: https://github.com/shadow-maint/shadow/issues/1072
Fixes: f45498a6c286 ("libmisc/write_full.c: Improve write_full()")
Reported-by: <https://github.com/brown-midas>
Suggested-by: <https://github.com/brown-midas>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
src/useradd.c