summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8ba50a)
raw | patch | inline | side by side (parent: f8ba50a)
author | octo <octo> | |
Sun, 30 Apr 2006 16:37:45 +0000 (16:37 +0000) | ||
committer | octo <octo> | |
Sun, 30 Apr 2006 16:37:45 +0000 (16:37 +0000) |
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index 0c799863f198a3b206249038620edc8d0a5b75c3..07f0cec64d723fdd842ccd34ab4c1ed0454c41e3 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
int optind;
int i;
+ if (geteuid () != 0)
+ {
+ fprintf (stderr, "Need superuser privileges to open a RAW socket. Sorry.\n");
+ return (1);
+ }
+
optind = read_options (argc, argv);
if (optind >= argc)