FreeBSD Bugzilla – Attachment 177137 Details for
Bug 214573
security/clamav-unofficial-sigs displays errors about prohibited character in host command
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes the problem with sed regex
clamav-unofficial-sigs-5.3.2_1.diff (text/plain), 2.18 KB, created by
Marko Njezic
on 2016-11-18 10:36:27 UTC
(
hide
)
Description:
Patch that fixes the problem with sed regex
Filename:
MIME Type:
Creator:
Marko Njezic
Created:
2016-11-18 10:36:27 UTC
Size:
2.18 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 426317) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= clamav-unofficial-sigs > PORTVERSION= 5.3.2 >+PORTREVISION= 1 > CATEGORIES= security > > MAINTAINER= sf@maxempire.com >Index: files/patch-clamav-unofficial-sigs.sh >=================================================================== >--- files/patch-clamav-unofficial-sigs.sh (revision 426317) >+++ files/patch-clamav-unofficial-sigs.sh (working copy) >@@ -1,4 +1,4 @@ >---- clamav-unofficial-sigs.sh.orig 2016-06-03 09:51:21 UTC >+--- clamav-unofficial-sigs.sh.orig 2016-11-18 10:05:40 UTC > +++ clamav-unofficial-sigs.sh > @@ -753,6 +753,8 @@ function make_signature_database_from_as > #Remove the clamav-unofficial-sigs script >@@ -27,7 +27,7 @@ > - if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -lt 1 ] ; then > - sanesecurity_mirror_ips=$(host -t A "$sanesecurity_url" | sed -n '/has address/{s/.*address \([^ ]*\).*/\1/;p;}') > - fi >-+ sanesecurity_mirror_ips=$(host "$sanesecurity_url" | sed 's/.*\s//') >++ sanesecurity_mirror_ips=$(host "$sanesecurity_url" | sed 's/.*[[:space:]]//') > > if [ "$(xshok_array_count "$sanesecurity_mirror_ips")" -ge "1" ] ; then > for sanesecurity_mirror_ip in $sanesecurity_mirror_ips ; do >@@ -37,7 +37,7 @@ > - if [ "$sanesecurity_mirror_name" == "" ] ; then > - sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed -n '/name pointer/{s/.*pointer \([^ ]*\).*\.$/\1/;p;}') > - fi >-+ sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed 's/.*\s//' | sed 's/\.$//') >++ sanesecurity_mirror_name=$(host "$sanesecurity_mirror_ip" | sed 's/.*[[:space:]]//' | sed 's/\.$//') > sanesecurity_mirror_site_info="$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="$sanesecurity_include_dbs" -ctuz $connect_timeout --timeout="$rsync_max_time" "rsync://$sanesecurity_mirror_ip/sanesecurity" "$work_dir_sanesecurity" 2>/dev/null
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
sf
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 214573
: 177137