summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--userspace/ebtables2/ebtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c
index 0c47526..f0e0ab9 100644
--- a/userspace/ebtables2/ebtables.c
+++ b/userspace/ebtables2/ebtables.c
@@ -1863,7 +1863,7 @@ int main(int argc, char *argv[])
int udc_nr;
if (!optarg && (optind >= argc ||
- (argv[optind][0] != '-'
+ (argv[optind][0] == '-'
&& strcmp(argv[optind], "!")))) {
delete_all_user_chains();
break;