mbox

BUG 11318: Fix deletion of temporary files from IPTables-GUI

Message ID 20170416210133.15174-1-matthias.fischer@ipfire.org
State Accepted
Commit 77cdccf4c0a2b1c0a2b8d6e4aab86fbcbd5439b9
Headers

Message

Matthias Fischer April 17, 2017, 7:01 a.m. UTC
  For details see:
https://bugzilla.ipfire.org/show_bug.cgi?id=11318

Temporary files for 'iptables', 'iptablesmangle' and 'iptablesnat' created by
'iptables.cgi' were not deleted after use but stayed in '/srv/weg/ipfire/html/'.

As a workaround I changed 'getipstat.c' to create these files in '/var/tmp' and the
"open (file..." and "rm" commands in 'iptables.cgi'.

Works here.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/iptables.cgi  | 12 ++++++------
 src/misc-progs/getipstat.c | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)