fix(feuille.c): use {u,g}id_t instead of int for uid and gid

This commit is contained in:
Tom MTT 2022-11-29 14:31:29 +01:00
parent 9f9a25237a
commit de702c9b58
2 changed files with 5 additions and 4 deletions

View file

@ -326,7 +326,8 @@ int main(int argc, char *argv[])
chdir(path);
/* user checks */
int uid = 0, gid = 0;
uid_t uid = 0;
gid_t gid = 0;
if (getuid() == 0) {
if (strlen(settings.user) == 0)
settings.user = "nobody";