[Bug 866] Missing newline with --list-rules

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Oct 25 21:45:51 CEST 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=866

--- Comment #4 from Eric Bock <eric.bock.1980 at gmail.com> 2013-10-25 21:45:50 CEST ---
I don't have much control over whether Android puts garbage in the firewall
rules.  Currently, in order to save the complete tables I am forced to delete
the quota2 rules, which Android probably inserts at boot time.  Since Android
is more prone to sudden rebooting than early Windows, the quota2 rules tend to
exist.

Regarding the exit from iptables: when it encounters the quota2 rule, iptables
emits a warning on stderr and an unterminated line on stdout.  The last line
easily becomes overwritten by the shell prompt and causes bash to become
confused about the cursor location:

[ 0 ] app_42 at android:/# iptables -S OUTPUT
-P OUTPUT ACCEPT
Can't find library for match `quota2'
-A OUTPUT ! -o lo+ [ 1 ] app_42 at android:/# iptables -S OUTPUT
-P OUTPUT ACCEPT
Can't find library for match `quota2'
[ 1 ] app_42 at android:/#                                                        
          ] || echo $x; done

(following some history navigation)

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the netfilter-buglog mailing list