It looks that in case of error, file is overwritten:

root@epsilon:~# date >> /tmp/blabla
root@epsilon:~# cat /tmp/blabla
Fri Mar 25 21:08:27 MSK 2011
root@epsilon:~# iptables-save > /tmp/blanax
iptables-save v1.4.2: Unable to open /proc/net/ip_tables_names: No
such file or directory

root@epsilon:~# cat /tmp/blanax
root@epsilon:~#

So my patch can hide problem while overwritting existing rules if
ip_tables is somehow unloaded on package upgrade, for example.

-- 
Best regards,
[COOLCOLD-RIPN]



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to