mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
selftests: netfilter: fix current year
[ Upstream commita3005b0f83] use date %Y instead of %G to read current year Problem appeared when running lkp-tests on 01/01/2021 Fixes:48d072c4e8("selftests: netfilter: add time counter check") Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f035e97f33
commit
ef8f281a65
|
|
@ -23,7 +23,7 @@ ip -net "$ns0" addr add 127.0.0.1 dev lo
|
|||
|
||||
trap cleanup EXIT
|
||||
|
||||
currentyear=$(date +%G)
|
||||
currentyear=$(date +%Y)
|
||||
lastyear=$((currentyear-1))
|
||||
ip netns exec "$ns0" nft -f /dev/stdin <<EOF
|
||||
table inet filter {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user