summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 16:05:59 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 16:05:59 -0400
commitbd2b16fbbe43e5d879ee85da7259bdd649e4394e (patch)
tree8875ad3362add12647983a004c11177a92c5f978 /src/lib
parentf7ae2ffa3341d63528d4322bf5ac988ed6c0b65e (diff)
libreblacklist: Fix a bug in the -h flag, adjust the unit test to catch it.
Diffstat (limited to 'src/lib')
-rwxr-xr-xsrc/lib/libreblacklist2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libreblacklist b/src/lib/libreblacklist
index bbba1ce..6800526 100755
--- a/src/lib/libreblacklist
+++ b/src/lib/libreblacklist
@@ -122,7 +122,7 @@ if [[ "${0##*/}" == libreblacklist ]]; then
cmd=$(<<<"$sec" sed -n '$s/^blacklist-//p')
if [[ "$cmd" == "$1" ]]; then
<<<"$sec" sed '$d' |
- while read -r line; do _ "$line"; done |
+ while read -r line; do print "$line"; done |
sed "s/blacklist-/${0##*/} /g" |
fmt -us
return 0