From: Kevin Day Date: Sun, 5 Mar 2023 16:00:16 +0000 (-0600) Subject: Bugfix: Number to large error should be returned as an error. X-Git-Tag: 0.6.4~25 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=74fa869e8faa98f612721d8554f5646a50c5269d;p=fll Bugfix: Number to large error should be returned as an error. An error is detected and reported when value for UID or GID is too large. However, no error status is set and the function succeeds. --- diff --git a/level_3/fake/c/private-make.c b/level_3/fake/c/private-make.c index 081d209..5f33dd6 100644 --- a/level_3/fake/c/private-make.c +++ b/level_3/fake/c/private-make.c @@ -90,6 +90,8 @@ extern "C" { funlockfile(data->main->error.to.stream); } + + return F_status_set_error(F_failure); } *id = (gid_t) number; @@ -183,6 +185,8 @@ extern "C" { funlockfile(data->main->error.to.stream); } + + return F_status_set_error(F_failure); } *id = (uid_t) number;