summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/check_dhcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index c6e5af8..bc2f4bb 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -269,9 +269,6 @@ int main(int argc, char **argv){
269 int dhcp_socket; 269 int dhcp_socket;
270 int result = STATE_UNKNOWN; 270 int result = STATE_UNKNOWN;
271 271
272 /* this plugin almost certainly needs root permissions. */
273 np_warn_if_not_root();
274
275 setlocale (LC_ALL, ""); 272 setlocale (LC_ALL, "");
276 bindtextdomain (PACKAGE, LOCALEDIR); 273 bindtextdomain (PACKAGE, LOCALEDIR);
277 textdomain (PACKAGE); 274 textdomain (PACKAGE);
@@ -280,6 +277,9 @@ int main(int argc, char **argv){
280 usage4 (_("Could not parse arguments")); 277 usage4 (_("Could not parse arguments"));
281 } 278 }
282 279
280 /* this plugin almost certainly needs root permissions. */
281 np_warn_if_not_root();
282
283 /* create socket for DHCP communications */ 283 /* create socket for DHCP communications */
284 dhcp_socket=create_dhcp_socket(); 284 dhcp_socket=create_dhcp_socket();
285 285