|
Lines 1376-1382
Link Here
|
| 1376 |
} |
1376 |
} |
| 1377 |
|
1377 |
|
| 1378 |
/* First the options that are only allowed for root */ |
1378 |
/* First the options that are only allowed for root */ |
| 1379 |
if (getuid() == 0 || geteuid != 0) |
1379 |
if (getuid() == 0 || geteuid() != 0) |
| 1380 |
{ |
1380 |
{ |
| 1381 |
if (!strcmp(argv[i], "-modulepath")) |
1381 |
if (!strcmp(argv[i], "-modulepath")) |
| 1382 |
{ |
1382 |
{ |
|
Lines 1679-1685
Link Here
|
| 1679 |
} |
1679 |
} |
| 1680 |
if (!strcmp(argv[i], "-configure")) |
1680 |
if (!strcmp(argv[i], "-configure")) |
| 1681 |
{ |
1681 |
{ |
| 1682 |
if (getuid() != 0 && geteuid == 0) { |
1682 |
if (getuid() != 0 && geteuid() == 0) { |
| 1683 |
ErrorF("The '-configure' option can only be used by root.\n"); |
1683 |
ErrorF("The '-configure' option can only be used by root.\n"); |
| 1684 |
exit(1); |
1684 |
exit(1); |
| 1685 |
} |
1685 |
} |