Skip to content

Commit a3005b0

Browse files
Fabian Frederickummakynes
authored andcommitted
selftests: netfilter: fix current year
use date %Y instead of %G to read current year Problem appeared when running lkp-tests on 01/01/2021 Fixes: 48d072c ("selftests: netfilter: add time counter check") Reported-by: kernel test robot <[email protected]> Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent b1bdde3 commit a3005b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/netfilter/nft_meta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ip -net "$ns0" addr add 127.0.0.1 dev lo
2323

2424
trap cleanup EXIT
2525

26-
currentyear=$(date +%G)
26+
currentyear=$(date +%Y)
2727
lastyear=$((currentyear-1))
2828
ip netns exec "$ns0" nft -f /dev/stdin <<EOF
2929
table inet filter {

0 commit comments

Comments
 (0)