From 74fa869e8faa98f612721d8554f5646a50c5269d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 5 Mar 2023 10:00:16 -0600 Subject: [PATCH] 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. --- level_3/fake/c/private-make.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 1.8.3.1