/* First the options that are only allowed for root */ if (getuid() == 0) { if (!strcmp(argv[i], "-modulepath")) { /* ... */ } else if (!strcmp(argv[i], "-logfile")) { /* ... */ } }