Skip to content

Commit

Permalink
instchown: add a queue-only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DerDakon committed Jan 28, 2024
1 parent 8bba95e commit de49864
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions instchown.c
Expand Up @@ -106,10 +106,13 @@ void z(char *home, char *file, int len, uid_t uid, gid_t gid, int mode)
free(dh.s);
}

int main(void)
int main(int argc, char **argv)
{
umask(077);
init_uidgid();
hier();
if (argc == 2 && strcmp(argv[1],"queue-only") == 0)
hier_queue();
else
hier();
return 0;
}

0 comments on commit de49864

Please sign in to comment.