summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing/dumps/meta_time.nodump
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-11-02 15:34:13 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-11-21 15:54:51 +0100
commit80fa13842f04db0ecbf7730b9c9d2d7179773f78 (patch)
tree00cc4d2ee3b7bc5fc3014e40c82a516046ce16b0 /tests/shell/testcases/listing/dumps/meta_time.nodump
parente95fef9ff3e625e01f2692a83bbbc2c6e335b64d (diff)
meta: fix hour decoding when timezone offset is negative
commit d392ddf243dcbf8a34726c777d2c669b1e8bfa85 upstream. Brian Davidson says: meta hour rules don't display properly after being created when the hour is on or after 00:00 UTC. The netlink debug looks correct for seconds past midnight UTC, but displaying the rules looks like an overflow or a byte order problem. I am in UTC-0400, so today, 20:00 and later exhibits the problem, while 19:00 and earlier hours are fine. meta.c only ever worked when the delta to UTC is positive. We need to add in case the second counter turns negative after offset adjustment. Also add a test case for this. Fixes: f8f32deda31d ("meta: Introduce new conditions 'time', 'day' and 'hour'") Reported-by: Brian Davidson <davidson.brian@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/listing/dumps/meta_time.nodump')
-rw-r--r--tests/shell/testcases/listing/dumps/meta_time.nodump0
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/shell/testcases/listing/dumps/meta_time.nodump b/tests/shell/testcases/listing/dumps/meta_time.nodump
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/shell/testcases/listing/dumps/meta_time.nodump