diff --git a/src/oping.c b/src/oping.c
index 63de91742b636a58d65c315403f1f2ad8c643ebe..3201e85dc0f8808268f467d4337ae9a137d7ee64 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * the Free Software Foundation; only version 2 of the License is
+ * applicable.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
}
}
+ /* Drop root privileges if we're setuid-root. */
+ setuid (getuid ());
+
i = 0;
for (iter = ping_iterator_get (ping);
iter != NULL;