set optind=0
diff --git a/ebtablesd.c b/ebtablesd.c
index a6a3eae..6683611 100644
--- a/ebtablesd.c
+++ b/ebtablesd.c
@@ -347,7 +347,7 @@
 			                "opened", replace[table_nr].name);
 			goto write_msg;
 		}
-		optind = 1;
+		optind = 0; /* Setting optind = 1 causes serious annoyances */
 		do_command(argc, argv, EXEC_STYLE_DAEMON, &replace[table_nr]);
 		ebt_reinit_extensions();
 write_msg: