fix(feuille.c): use {u,g}id_t instead of int for uid and gid
This commit is contained in:
parent
9f9a25237a
commit
de702c9b58
2 changed files with 5 additions and 4 deletions
|
@ -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";
|
||||
|
|
Reference in a new issue