Blame SOURCES/0075-iproute_lwtunnel-Argument-to-strerror-must-be-positi.patch
|
|
36cfb7 |
From 4e55e568493084c458ef96f10a2a3dab93e8464a Mon Sep 17 00:00:00 2001
|
|
|
36cfb7 |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
36cfb7 |
Date: Mon, 29 Apr 2019 20:05:38 +0200
|
|
|
36cfb7 |
Subject: [PATCH] iproute_lwtunnel: Argument to strerror must be positive
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
|
|
|
36cfb7 |
Upstream Status: iproute2.git commit 58a15e6c7e7cb
|
|
|
36cfb7 |
|
|
|
36cfb7 |
commit 58a15e6c7e7cb4c0d25e6bb3762ac2b1c94ff523
|
|
|
36cfb7 |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
36cfb7 |
Date: Thu Aug 17 19:09:31 2017 +0200
|
|
|
36cfb7 |
|
|
|
36cfb7 |
iproute_lwtunnel: Argument to strerror must be positive
|
|
|
36cfb7 |
|
|
|
36cfb7 |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
36cfb7 |
---
|
|
|
36cfb7 |
ip/iproute_lwtunnel.c | 2 +-
|
|
|
36cfb7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
36cfb7 |
|
|
|
36cfb7 |
diff --git a/ip/iproute_lwtunnel.c b/ip/iproute_lwtunnel.c
|
|
|
36cfb7 |
index b6f08f073ef02..92ea2c87787ec 100644
|
|
|
36cfb7 |
--- a/ip/iproute_lwtunnel.c
|
|
|
36cfb7 |
+++ b/ip/iproute_lwtunnel.c
|
|
|
36cfb7 |
@@ -480,7 +480,7 @@ static int lwt_parse_bpf(struct rtattr *rta, size_t len,
|
|
|
36cfb7 |
err = bpf_parse_common(bpf_type, &cfg, &bpf_cb_ops, &x);
|
|
|
36cfb7 |
if (err < 0) {
|
|
|
36cfb7 |
fprintf(stderr, "Failed to parse eBPF program: %s\n",
|
|
|
36cfb7 |
- strerror(err));
|
|
|
36cfb7 |
+ strerror(-err));
|
|
|
36cfb7 |
return -1;
|
|
|
36cfb7 |
}
|
|
|
36cfb7 |
rta_nest_end(rta, nest);
|
|
|
36cfb7 |
--
|
|
|
36cfb7 |
2.20.1
|
|
|
36cfb7 |
|