diff options
author | nate <nate@FreeBSD.org> | 1996-08-31 17:58:23 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-08-31 17:58:23 +0000 |
commit | 927b7037cdf10ef237f4c832e07b1576cd5757ce (patch) | |
tree | 800046fdc7acd08c48ea0288d06a251d2c0211a0 /contrib/cvs | |
parent | 96a3880de27637fb04a95532f2c7d5237e827ed3 (diff) | |
download | FreeBSD-src-927b7037cdf10ef237f4c832e07b1576cd5757ce.zip FreeBSD-src-927b7037cdf10ef237f4c832e07b1576cd5757ce.tar.gz |
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
Diffstat (limited to 'contrib/cvs')
0 files changed, 0 insertions, 0 deletions