X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=evhz.c;h=be5ff6db9c957676accd8c029cee9823a1d6b0b3;hb=d59682bd3edd893714f52694e82462747aee6655;hp=a34fd83277723d9397905669bc8a47451ef10a1b;hpb=86e80de6d1c5759421e1f9702a798f05cda42207;p=evhz diff --git a/evhz.c b/evhz.c index a34fd83..be5ff6d 100644 --- a/evhz.c +++ b/evhz.c @@ -42,6 +42,11 @@ int main(int argc, char *argv[]) { } } + if(geteuid() != 0) { + printf("%s must be used as superuser\n", argv[0]); + return 1; + } + signal(SIGINT, sigint); printf("Press CTRL-C to exit.\n\n");