gaenserich / hostsblock

an ad- and malware-blocking script for Linux
https://github.com/gaenserich/hostsblock
225 stars 28 forks source link

list is not compressed #72

Closed mbab closed 7 years ago

mbab commented 7 years ago

Running on Arch pkgver=0.999.5

sudo -u hostsblock /usr/bin/hostsblock -c qq.net
Checking to see if url is blocked or not...

'qq.net' NOT BLOCKED/REDIRECTED
        1) Block qq.net
        2) Block qq.net and delete all whitelist url entries containing qq.net
        3) Keep unblocked (default)
1-3 (default: 3): 1
Blocking qq.net
pigz: skipping: /var/lib/hostsblock/white.list is not compressed

but site is blocked, when reverse

sudo -u hostsblock /usr/bin/hostsblock -c qq.net
Checking to see if url is blocked or not...

'qq.net' BLOCKED by blocklist(s)127.0.0.1 qq.net \! /var/lib/hostsblock/black.list
        1) Unblock/unredirect just qq.net
        2) Unblock/unredirect all sites containing url qq.net
        3) Keep blocked/redirected
1-3 (default: 3): 1
Unblocking just qq.net
pigz: skipping: /var/lib/hostsblock/black.list is not compressed
pigz: skipping: /var/lib/hostsblock/hosts.block is not compressedpigz: abort: read error on /var/lib/hostsblock/hosts.block (Bad file descriptor)

and still blocked

gaenserich commented 7 years ago

Thanks for the eyes. I actually caught this yesterday and fixed it in 53da15846ebf75b2dec0e10b027783b5a9ade740