Update main.c

This commit is contained in:
mmmdbybyd 2018-11-13 07:58:23 +08:00 committed by GitHub
parent c931ebdd3d
commit 2675a28f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
main.c
View File

@ -155,12 +155,12 @@ static void initializate(int argc, char **argv)
break;
case 'u':
if (setgid(atoi(optarg)) != 0))
if (setgid(atoi(optarg)) != 0)
{
perror("setgid");
exit(1);
}
if (setuid(atoi(optarg)) != 0))
if (setuid(atoi(optarg)) != 0)
{
perror("setuid");
exit(1);