basic/user-util: split out placeholder suppression from USER_CREDS_CLEAN into its own flag

No functional change, preparation for later commits.
This commit is contained in:
Mike Yuan
2024-11-19 00:38:18 +01:00
parent 579ce77ead
commit eea9d3eb10
4 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -858,7 +858,7 @@ static int get_fixed_user(
/* Note that we don't set $HOME or $SHELL if they are not particularly enlightening anyway
* (i.e. are "/" or "/bin/nologin"). */
r = get_user_creds(&user_or_uid, ret_uid, ret_gid, ret_home, ret_shell, USER_CREDS_CLEAN);
r = get_user_creds(&user_or_uid, ret_uid, ret_gid, ret_home, ret_shell, USER_CREDS_CLEAN|USER_CREDS_SUPPRESS_PLACEHOLDER);
if (r < 0)
return r;