aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/netfilter
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2021-01-30 11:14:25 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-02-04 00:33:09 +0100
commita3005b0f83f217c888393c6bf9cd36e3d1616bca (patch)
tree203cdd5917cc2a700fc44c8a7e619f69cd7ea6bf /tools/testing/selftests/netfilter
parentnetfilter: xt_recent: Fix attempt to update deleted entry (diff)
downloadlinux-dev-a3005b0f83f217c888393c6bf9cd36e3d1616bca.tar.xz
linux-dev-a3005b0f83f217c888393c6bf9cd36e3d1616bca.zip
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: 48d072c4e8cd ("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>
Diffstat (limited to 'tools/testing/selftests/netfilter')
-rwxr-xr-xtools/testing/selftests/netfilter/nft_meta.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/netfilter/nft_meta.sh b/tools/testing/selftests/netfilter/nft_meta.sh
index 087f0e6e71ce..f33154c04d34 100755
--- a/tools/testing/selftests/netfilter/nft_meta.sh
+++ b/tools/testing/selftests/netfilter/nft_meta.sh
@@ -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 {