]> git.ipfire.org Git - thirdparty/nftables.git/commit
meta: don't use non-POSIX formats in strptime()
authorJo-Philipp Wich <jo@mein.io>
Mon, 8 Aug 2022 22:18:42 +0000 (00:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Aug 2022 08:51:43 +0000 (10:51 +0200)
commit180ce4d7da785d93ce2b070a2b45b82088d09c10
tree9058ed772c1660f3a53172a3af775ac0c1aee892
parentc1c223f1b58188542222ee2d9a4a8cc133d1dc3b
meta: don't use non-POSIX formats in strptime()

The current strptime() invocations in meta.c use the `%F` format which
is not specified by POSIX and thus unimplemented by some libc flavors
such as musl libc.

Replace all occurrences of `%F` with an equivalent `%Y-%m-%d` format
in order to be able to properly parse user supplied dates in such
environments.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/meta.c