diff options
author | Dan Harnett <danh@cvs.openbsd.org> | 2004-12-29 14:21:02 +0000 |
---|---|---|
committer | Dan Harnett <danh@cvs.openbsd.org> | 2004-12-29 14:21:02 +0000 |
commit | 440badbd73ed1fb0512c8b428f50c7ee4f130500 (patch) | |
tree | a4830f6aa278b3f4ec3c08968b76576db6c6b164 | |
parent | 1f7aba8112a33e16bd848b36c4f1cb28567a4bb1 (diff) |
don't clear interface flags if '-n' option was given.
ok henning@
-rw-r--r-- | sbin/pfctl/pfctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index d8e44de2bb1..19080f940fb 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.228 2004/12/29 10:54:01 henning Exp $ */ +/* $OpenBSD: pfctl.c,v 1.229 2004/12/29 14:21:01 danh Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1712,7 +1712,8 @@ main(int argc, char *argv[]) rulesopt = NULL; } - if ((rulesopt != NULL) && (!*anchorname)) + if ((rulesopt != NULL) && (!*anchorname) + && (opts & PF_OPT_NOACTION) == 0) if (pfctl_clear_interface_flags(dev, opts | PF_OPT_QUIET)) error = 1; |