mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 06:41:26 +00:00
root check
This commit is contained in:
parent
1e9df58f2f
commit
a83a975299
5
iodine.c
5
iodine.c
|
@ -135,6 +135,11 @@ main(int argc, char **argv)
|
|||
|
||||
username = NULL;
|
||||
|
||||
if (geteuid() != 0) {
|
||||
printf("Run as root and you'll be happy.\n");
|
||||
usage();
|
||||
}
|
||||
|
||||
while ((choice = getopt(argc, argv, "u:")) != -1) {
|
||||
switch(choice) {
|
||||
case 'u':
|
||||
|
|
Loading…
Reference in a new issue