From owner-cvs-sbin Sat Aug 31 10:58:33 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA03074 for cvs-sbin-outgoing; Sat, 31 Aug 1996 10:58:33 -0700 (PDT) Received: (from nate@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA03054; Sat, 31 Aug 1996 10:58:24 -0700 (PDT) Date: Sat, 31 Aug 1996 10:58:24 -0700 (PDT) From: Nate Williams Message-Id: <199608311758.KAA03054@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/ipfw ipfw.8 ipfw.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk nate 96/08/31 10:58:24 Modified: sbin/ipfw ipfw.8 ipfw.c Log: Because 'ipfw flush' is such a dangerous command (given that most firewalls are remote, and this command will kill the network connection to them), prompt the user for confirmation of this command. Also, add the '-f' flag which ignores the need for confirmation the command, and if there is no controlling tty (isatty(STDIN_FILENO) !=0) assume '-f'. If anyone is using ipfw flush in scripts it shouldn't affect them, but you may want to change the script to use a 'ipfw -f flush'. Reviewed by: alex Revision Changes Path 1.22 +6 -1 src/sbin/ipfw/ipfw.8 1.33 +36 -7 src/sbin/ipfw/ipfw.c