So sorry for the email to your personal email without the cc! ср, 27 мар. 2024 г. в 22:20, Fedor Lapshin <fe.lap.prog@xxxxxxxxx>: > > Signed-off-by: Fedor Lapshin <fe.lap.prog@xxxxxxxxx> > --- > man3/getgrouplist.3 | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/man3/getgrouplist.3 b/man3/getgrouplist.3 > index 41389b6c3..cf23dfa78 100644 > --- a/man3/getgrouplist.3 > +++ b/man3/getgrouplist.3 > @@ -162,10 +162,11 @@ main(int argc, char *argv[]) > \& > /* Fetch passwd structure (contains first group ID for user). */ > \& > + errno = 0; > pw = getpwnam(argv[1]); > if (pw == NULL) { > perror("getpwnam"); > - exit(EXIT_SUCCESS); > + exit(EXIT_FAILURE); > } > \& > /* Retrieve group list. */ > -- > 2.34.1