From owner-freebsd-ports-bugs@freebsd.org Wed Nov 16 14:44:57 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB183C45CDB for ; Wed, 16 Nov 2016 14:44:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A19DF175F for ; Wed, 16 Nov 2016 14:44:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAGEiu04029021 for ; Wed, 16 Nov 2016 14:44:57 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214573] security/clamav-unofficial-sigs displays errors about prohibited character in host command Date: Wed, 16 Nov 2016 14:44:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsdbug@patpro.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2016 14:44:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214573 Bug ID: 214573 Summary: security/clamav-unofficial-sigs displays errors about prohibited character in host command Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: freebsdbug@patpro.net CC: sf@maxempire.com CC: sf@maxempire.com Flags: maintainer-feedback?(sf@maxempire.com) When running clamav-unofficial-sigs.sh (from crontab in my case), the script displays those errors: host: convert UTF-8 textname to IDN encoding: prohibited character found host: convert UTF-8 textname to IDN encoding: prohibited character found The host command is called twiec in the script and its output is parsed with sed. Apparently this parsing is not enough, and when data is fed back into host,= it triggers the error. I've patched clamav-unofficial-sigs.sh by changing the sed regex from .*\s = to .*[ \t] as show in the diff below: --- /usr/local/bin/clamav-unofficial-sigs.sh 2016-11-06 17:24:31.0000000= 00 +0100 +++ /tmp/clamav-unofficial-sigs-new.sh 2016-11-16 15:28:42.609203000 +0100 @@ -1881,11 +1881,11 @@ xshok_pretty_echo_and_log "Sanesecurity Database & GPG Signature F= ile Updates" "=3D" xshok_pretty_echo_and_log "Checking for Sanesecurity updates..." - sanesecurity_mirror_ips=3D$(host "$sanesecurity_url" | sed 's/.*\s= //') + sanesecurity_mirror_ips=3D$(host "$sanesecurity_url" | sed 's/.*[ \t]//') if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -ge "1" ] ; then for sanesecurity_mirror_ip in $sanesecurity_mirror_ips ; do - sanesecurity_mirror_name=3D$(host "$sanesecurity_mirror_ip" | = sed 's/.*\s//' | sed 's/\.$//') + sanesecurity_mirror_name=3D$(host "$sanesecurity_mirror_ip" | = sed 's/.*[ \t]//' | sed 's/\.$//') sanesecurity_mirror_site_info=3D"$sanesecurity_mirror_name $sanesecurity_mirror_ip" xshok_pretty_echo_and_log "Sanesecurity mirror site used: $sanesecurity_mirror_site_info" $rsync_bin $rsync_output_level $no_motd --files-from=3D"$sanesecurity_include_dbs" -ctuz $connect_timeout --timeout=3D"$rsync_max_time" "rsync://$sanesecurity_mirror_ip/sanesecurity" "$work_dir_sanesecurity" 2>/dev/null That's enough to fix the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=