]> Kevux Git Server - fll/commitdiff
Bugfix: Number to large error should be returned as an error.
authorKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 16:00:16 +0000 (10:00 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 16:00:16 +0000 (10:00 -0600)
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

index 081d2095ce763cbd0a58ee9f5c846211949b772c..5f33dd63ffef7426c694bae5ed176e869470feaf 100644 (file)
@@ -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;