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