-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mail/spamassassin: Remove deprecated method usage in sa-update
PR: 272313 Approved by: cy (maintainer) Obtained from: https://svn.apache.org/viewvc?view=revision&revision=1910601
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# https://svn.apache.org/viewvc?view=revision&revision=1910601 | ||
--- sa-update.raw.orig 2022-12-14 06:03:27 UTC | ||
+++ sa-update.raw | ||
@@ -1458,7 +1458,7 @@ sub do_dns_query { | ||
next if !$rr; # no answer records, only rcode | ||
next if $rr->type ne $rr_type; | ||
# scalar context! | ||
- my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdatastr; | ||
+ my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdstring; | ||
push(@result,$text) if defined $text && $text ne ''; | ||
} | ||
printf("DNS %s query: %s -> %s\n", $rr_type, $query, join(", ",@result)) |