* [PATCH 1/4] syscall: initialize buffer for vec()
2022-09-29 17:48 5% ` [PATCH 0/4] CentOS 7 fixes + fix Gcf2 everywhere Eric Wong
@ 2022-09-29 17:48 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-09-29 17:48 UTC (permalink / raw)
To: meta; +Cc: Konstantin Ryabitsev
This is needed for older Perls (tested perl 5.16.3 on CentOS 7).
---
lib/PublicInbox/Syscall.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm
index 46496bca..412ca64f 100644
--- a/lib/PublicInbox/Syscall.pm
+++ b/lib/PublicInbox/Syscall.pm
@@ -454,7 +454,7 @@ no warnings 'once';
*recv_cmd4 = sub ($$$) {
my ($sock, undef, $len) = @_;
- vec($_[1], ($len + 1) * 8, 1) = 0;
+ vec($_[1] //= '', ($len + 1) * 8, 1) = 0;
my $cmsghdr = "\0" x msg_controllen; # 10 * sizeof(int)
my $iov = pack('P'.TMPL_size_t, $_[1], $len);
my $mh = pack('PL' . # msg_name, msg_namelen (socklen_t (U32))
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] CentOS 7 fixes + fix Gcf2 everywhere
@ 2022-09-29 17:48 5% ` Eric Wong
2022-09-29 17:48 7% ` [PATCH 1/4] syscall: initialize buffer for vec() Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-09-29 17:48 UTC (permalink / raw)
To: meta; +Cc: Konstantin Ryabitsev
A bunch of CentOS 7.x fixes noted by Konstantin
I also just noticed I broke Gcf2 everywhere :x
I'd much rather support old enterprise distros directly than
direct people towards bloated Docker containers and what-not.
Eric Wong (4):
syscall: initialize buffer for vec()
treewide: use --globoff with curl(1)
gcf2: fix syntax error and require PublicInbox::Git
tests: no IPv6 on old Net::NNTP, Mail::IMAPClient, HTTP::Tiny
lib/PublicInbox/Gcf2.pm | 6 ++++--
lib/PublicInbox/LeiCurl.pm | 4 ++--
lib/PublicInbox/Syscall.pm | 2 +-
lib/PublicInbox/TestCommon.pm | 9 +++++++++
t/extsearch.t | 4 ++--
t/httpd-corner.t | 8 ++++----
t/nntpd.t | 3 +--
t/v2writable.t | 2 +-
8 files changed, 24 insertions(+), 14 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-09-28 20:51 "make test" for 1.9.0 on centos-7 Konstantin Ryabitsev
2022-09-29 17:48 5% ` [PATCH 0/4] CentOS 7 fixes + fix Gcf2 everywhere Eric Wong
2022-09-29 17:48 7% ` [PATCH 1/4] syscall: initialize buffer for vec() Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).