Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5065567pxb; Mon, 15 Feb 2021 08:36:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbs7MSf9tltAsJi9Zodi/4S5OBDnkcFrDTeuI8SEycGC1YB5PnnlM14g5SkL3+b/71raVI X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr16135999ejc.473.1613406967094; Mon, 15 Feb 2021 08:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613406967; cv=none; d=google.com; s=arc-20160816; b=bYNMskOFsWnQkafOs0Y46XH6+quleEISt0Z8DcCQlh0M7UzY0vyRlheFKyD2aQet+0 rSmeAocFje2ZcjmN2LVReTO6ZLEvKzJtfZO5RsRYVbuv2xithzbCAw3pqHNiWWU9Wcld aj0hA6k8N0lqZ4Cpk5CmRLYYmeKrYoZgvQ8UrvF6Ns1kePNnXAQM2PL3hpgo1whcS6z+ YJadxamrO/8eOSzBFOoOoqAK8xuMmI90LueGYgnEFHsfMzXQ9sJUaYa+yzwJWgmjhA4i hdFU9xzfEjeOsEuPdhOBa9I6vAYLc21w3sDtPZzT2NSE5G3N1nLNxFxKZfDiqNT3vE+n nGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BB3w4YVCnIDzLjxo8D/w45p16TXJDrih8S5rJsHdNeg=; b=rSHrvwbYpcQJoKRh4rkPM6/56fBcv57zG/OadF9VrigaZRbWqeIQnG049rKsQgLjn+ QdMmfYDzPHFAaJ85ETdhjDJ+McJh3JkbacdbVWHlIZgEg8ASzJTo/SBrOmHdUCIlceCy gntjN8uwIYIjHZ3wBQpjEoh8Qt9xysABYiwdTqNbyyXMJtwJDZxOHuFZqQ8UPmxUxEQy lLc++UC1OZfywQ8IjLL37gfvHZzHA1Hr6fTyDKBP+2xMQ7PcFg/hx34HlPgeoO9M8J2W 0SiDXkkO1ont/3bl1tdSWblGUn8nr4spSlztuAJfAoPVB2dlcSl1XFoEVC4PVYLfqR7W WHcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c4ErpDO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb23si11913517ejc.382.2021.02.15.08.35.44; Mon, 15 Feb 2021 08:36:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c4ErpDO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231521AbhBOQez (ORCPT + 99 others); Mon, 15 Feb 2021 11:34:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:49202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231447AbhBOPhq (ORCPT ); Mon, 15 Feb 2021 10:37:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67E7564E9C; Mon, 15 Feb 2021 15:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613403181; bh=445vZ5zW4I0yy7T50vlJ3nojO8A1VZq1mfyxJfDoIY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c4ErpDO4859bbCzT9xGpL9HX7RfF5QPaVmH2FpAiVAPPl+oZ7IdRZK9jhSXi7z9N2 JlHzn5NOH1EZ3mndrW9HN48nGdPkjz+pr3z9IyZ+mdsjsIxaBUi1lebLhHnX7setx/ Tyk4Vl2oe12dwXC6lePvGgib6JAlqGIvVkuL9wBw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabian Frederick , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.10 058/104] selftests: netfilter: fix current year Date: Mon, 15 Feb 2021 16:27:11 +0100 Message-Id: <20210215152721.353681876@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152719.459796636@linuxfoundation.org> References: <20210215152719.459796636@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabian Frederick [ Upstream commit a3005b0f83f217c888393c6bf9cd36e3d1616bca ] 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 Signed-off-by: Fabian Frederick Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- tools/testing/selftests/netfilter/nft_meta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/netfilter/nft_meta.sh b/tools/testing/selftests/netfilter/nft_meta.sh index 087f0e6e71ce7..f33154c04d344 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 <