diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:33:09 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:33:09 -0400 |
commit | acf23e63aceb182a748f1f618bf87957747d7886 (patch) | |
tree | b3bf99e198116f64882f5f1f84fb5caa7f5bad2d /usr/local/www | |
parent | 0c348a2b4d94bfb33e20d3a057eb88dda802335b (diff) | |
download | pfsense-acf23e63aceb182a748f1f618bf87957747d7886.zip pfsense-acf23e63aceb182a748f1f618bf87957747d7886.tar.gz |
Only remove tmp file if we succeed
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/diag_showbogons.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php index 4f75c70..f5f8fc1 100644 --- a/usr/local/www/diag_showbogons.php +++ b/usr/local/www/diag_showbogons.php @@ -43,8 +43,8 @@ if($_POST['Download']) { if(file_exists("/tmp/bogons")) { $savemsg = "The bogons database has been updated."; exec("egrep -v '^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8' /tmp/bogons > /etc/bogons"); + exec("rm /tmp/bogons"); } - exec("rm /tmp/bogons"); } $bogons = `cat /etc/bogons`; |