|
|
} | } |
/* First the options that are only allowed for root */ | /* First the options that are only allowed for root */ |
if (getuid() == 0 || geteuid != 0) |
if (getuid() == 0 || geteuid() != 0) |
{ | { |
if (!strcmp(argv[i], "-modulepath")) | if (!strcmp(argv[i], "-modulepath")) |
{ | { |
|
|
} | } |
if (!strcmp(argv[i], "-configure")) | if (!strcmp(argv[i], "-configure")) |
{ | { |
if (getuid() != 0 && geteuid == 0) { |
if (getuid() != 0 && geteuid() == 0) { |
ErrorF("The '-configure' option can only be used by root.\n"); | ErrorF("The '-configure' option can only be used by root.\n"); |
exit(1); | exit(1); |
} | } |