|
Line
Link Here
|
| 0 |
-- xf86Init.c 14 Dec 2005 20:12:00 -0000 1.29 |
0 |
++ xf86Init.c 10 Mar 2006 11:21:37 -0000 |
|
Lines 1376-1382
Link Here
|
| 1376 |
} |
1376 |
} |
| 1377 |
/* First the options that are only allowed for root */ |
1377 |
/* First the options that are only allowed for root */ |
| 1378 |
if (getuid() == 0 || geteuid != 0) |
1378 |
if (getuid() == 0 || geteuid() != 0) |
| 1379 |
{ |
1379 |
{ |
| 1380 |
if (!strcmp(argv[i], "-modulepath")) |
1380 |
if (!strcmp(argv[i], "-modulepath")) |
| 1381 |
{ |
1381 |
{ |
|
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 |
} |