| Summary: | Temporary textfiles for 'iptables', 'iptablesmangle' and iptablesnat' are not deleted after use. | ||
|---|---|---|---|
| Product: | IPFire | Reporter: | Matthias Fischer <matthias.fischer> |
| Component: | iptables | Assignee: | Assigned to nobody - feel free to grab it and work on it <nobody> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | Minor Usability | ||
| Priority: | - Unknown - | CC: | matthias.fischer |
| Version: | 2 | ||
| Hardware: | all | ||
| OS: | Linux | ||
Suggested solution: For 'IPTables'-GUI: http://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=commit;h=bf1985fae5baca327fcded31264f45638442f02e For 'guardian': http://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=commit;h=c33f51684c9c7c4108eba1914a2f225de5845b5d Best, Matthias |
Hi, when opening 'iptables.cgi', three text files are created through '/usr/local/bin/getipstat' in directory '/srv/web/ipfire/html'. These are 'iptables.txt', 'iptablesmangle.txt' and 'iptablesnat.txt', see line 47 in '/srv/web/ipfire/cgi-bin/iptables'. After closing 'iptables.cgi', these three files are not needed anymore and should be deleted by the last three lines (437-439) in 'iptables,cgi': ... system(rm -f "/srv/web/ipfire/html/iptables.txt"); system(rm -f "/srv/web/ipfire/html/iptablesmangle.txt"); system(rm -f "/srv/web/ipfire/html/iptablesnat.txt"); ... This doesn't work, files stay where they are, nothing happens. Changing the code to: ... unlink("/srv/web/ipfire/html/iptables.txt"); unlink("/srv/web/ipfire/html/iptablesmangle.txt"); unlink("/srv/web/ipfire/html/iptablesnat.txt"); ... had no effect, either - '/var/log/httpd/error_log' says: ... cannot unlink '/srv/web/ipfire/html/... : Permission denied, referer: https:... ... Same things seem to happen in '/srv/web/ipfire/cgi-bin/guardian.cgi', line 986 and line 1022-1024. Best, Matthias