Update main.c
This commit is contained in:
parent
c931ebdd3d
commit
2675a28f7c
4
main.c
4
main.c
@ -155,12 +155,12 @@ static void initializate(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'u':
|
case 'u':
|
||||||
if (setgid(atoi(optarg)) != 0))
|
if (setgid(atoi(optarg)) != 0)
|
||||||
{
|
{
|
||||||
perror("setgid");
|
perror("setgid");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (setuid(atoi(optarg)) != 0))
|
if (setuid(atoi(optarg)) != 0)
|
||||||
{
|
{
|
||||||
perror("setuid");
|
perror("setuid");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user