Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libnftnl for openSUSE:Factory checked in at 2022-11-11 14:36:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libnftnl (Old) and /work/SRC/openSUSE:Factory/.libnftnl.new.1597 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnftnl" Fri Nov 11 14:36:19 2022 rev:25 rq:1035106 version:1.2.4 Changes: -------- --- /work/SRC/openSUSE:Factory/libnftnl/libnftnl.changes 2022-08-11 18:31:21.650127222 +0200 +++ /work/SRC/openSUSE:Factory/.libnftnl.new.1597/libnftnl.changes 2022-11-11 14:36:23.766260526 +0100 @@ -1,0 +2,7 @@ +Thu Nov 10 15:47:31 UTC 2022 - Jan Engelhardt <[email protected]> + +- Update to release 1.2.4 + * rule, set_elem: remove trailing \n in userdata snprintf + * libnftnl: Fix res_id byte order + +------------------------------------------------------------------- Old: ---- libnftnl-1.2.3.tar.bz2 libnftnl-1.2.3.tar.bz2.sig New: ---- libnftnl-1.2.4.tar.bz2 libnftnl-1.2.4.tar.bz2.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libnftnl.spec ++++++ --- /var/tmp/diff_new_pack.34bPDV/_old 2022-11-11 14:36:24.290263551 +0100 +++ /var/tmp/diff_new_pack.34bPDV/_new 2022-11-11 14:36:24.294263575 +0100 @@ -18,7 +18,7 @@ Name: libnftnl %define lname libnftnl11 -Version: 1.2.3 +Version: 1.2.4 Release: 0 Summary: Userspace library to access the nftables Netlink interface License: GPL-2.0-or-later ++++++ libnftnl-1.2.3.tar.bz2 -> libnftnl-1.2.4.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/configure new/libnftnl-1.2.4/configure --- old/libnftnl-1.2.3/configure 2022-08-09 20:24:41.919474738 +0200 +++ new/libnftnl-1.2.4/configure 2022-11-10 16:04:27.374611736 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libnftnl 1.2.3. +# Generated by GNU Autoconf 2.69 for libnftnl 1.2.4. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ # Identity of this package. PACKAGE_NAME='libnftnl' PACKAGE_TARNAME='libnftnl' -PACKAGE_VERSION='1.2.3' -PACKAGE_STRING='libnftnl 1.2.3' +PACKAGE_VERSION='1.2.4' +PACKAGE_STRING='libnftnl 1.2.4' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1333,7 +1333,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libnftnl 1.2.3 to adapt to many kinds of systems. +\`configure' configures libnftnl 1.2.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1404,7 +1404,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libnftnl 1.2.3:";; + short | recursive ) echo "Configuration of libnftnl 1.2.4:";; esac cat <<\_ACEOF @@ -1522,7 +1522,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libnftnl configure 1.2.3 +libnftnl configure 1.2.4 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1800,7 +1800,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libnftnl $as_me 1.2.3, which was +It was created by libnftnl $as_me 1.2.4, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3816,7 +3816,7 @@ # Define the identity of the package. PACKAGE='libnftnl' - VERSION='1.2.3' + VERSION='1.2.4' cat >>confdefs.h <<_ACEOF @@ -13578,7 +13578,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libnftnl $as_me 1.2.3, which was +This file was extended by libnftnl $as_me 1.2.4, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -13644,7 +13644,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libnftnl config.status 1.2.3 +libnftnl config.status 1.2.4 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/configure.ac new/libnftnl-1.2.4/configure.ac --- old/libnftnl-1.2.3/configure.ac 2022-08-09 20:24:36.019477147 +0200 +++ new/libnftnl-1.2.4/configure.ac 2022-11-10 16:04:21.994651913 +0100 @@ -1,6 +1,6 @@ dnl Process this file with autoconf to create configure. -AC_INIT([libnftnl], [1.2.3]) +AC_INIT([libnftnl], [1.2.4]) AC_CONFIG_AUX_DIR([build-aux]) AC_CANONICAL_HOST AC_CONFIG_MACRO_DIR([m4]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/src/common.c new/libnftnl-1.2.4/src/common.c --- old/libnftnl-1.2.3/src/common.c 2022-08-09 20:24:36.019477147 +0200 +++ new/libnftnl-1.2.4/src/common.c 2022-11-10 16:04:22.004651837 +0100 @@ -10,6 +10,7 @@ #include <stdlib.h> #include <sys/socket.h> #include <time.h> +#include <arpa/inet.h> #include <linux/netlink.h> #include <linux/netfilter/nfnetlink.h> #include <linux/netfilter/nf_tables.h> @@ -37,7 +38,7 @@ nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); nfh->nfgen_family = family; nfh->version = NFNETLINK_V0; - nfh->res_id = res_id; + nfh->res_id = htons(res_id); return nlh; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/src/expr/payload.c new/libnftnl-1.2.4/src/expr/payload.c --- old/libnftnl-1.2.3/src/expr/payload.c 2022-08-09 20:24:36.019477147 +0200 +++ new/libnftnl-1.2.4/src/expr/payload.c 2022-11-10 16:04:22.004651837 +0100 @@ -218,20 +218,6 @@ return base2str_array[base]; } -static inline int nftnl_str2base(const char *base) -{ - if (strcmp(base, "link") == 0) - return NFT_PAYLOAD_LL_HEADER; - else if (strcmp(base, "network") == 0) - return NFT_PAYLOAD_NETWORK_HEADER; - else if (strcmp(base, "transport") == 0) - return NFT_PAYLOAD_TRANSPORT_HEADER; - else { - errno = EINVAL; - return -1; - } -} - static int nftnl_expr_payload_snprintf(char *buf, size_t len, uint32_t flags, const struct nftnl_expr *e) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/src/rule.c new/libnftnl-1.2.4/src/rule.c --- old/libnftnl-1.2.3/src/rule.c 2022-08-09 20:24:36.019477147 +0200 +++ new/libnftnl-1.2.4/src/rule.c 2022-11-10 16:04:22.004651837 +0100 @@ -622,12 +622,13 @@ for (i = 0; i < r->user.len; i++) { char *c = r->user.data; - ret = snprintf(buf + offset, remain, "%c", - isalnum(c[i]) ? c[i] : 0); + ret = snprintf(buf + offset, remain, + isprint(c[i]) ? "%c" : "\\x%02hhx", + c[i]); SNPRINTF_BUFFER_SIZE(ret, remain, offset); } - ret = snprintf(buf + offset, remain, " }\n"); + ret = snprintf(buf + offset, remain, " }"); SNPRINTF_BUFFER_SIZE(ret, remain, offset); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.3/src/set_elem.c new/libnftnl-1.2.4/src/set_elem.c --- old/libnftnl-1.2.3/src/set_elem.c 2022-08-09 20:24:36.019477147 +0200 +++ new/libnftnl-1.2.4/src/set_elem.c 2022-11-10 16:04:22.004651837 +0100 @@ -735,18 +735,19 @@ SNPRINTF_BUFFER_SIZE(ret, remain, offset); if (e->user.len) { - ret = snprintf(buf + offset, remain, " userdata = {"); + ret = snprintf(buf + offset, remain, " userdata = { "); SNPRINTF_BUFFER_SIZE(ret, remain, offset); for (i = 0; i < e->user.len; i++) { char *c = e->user.data; - ret = snprintf(buf + offset, remain, "%c", - isalnum(c[i]) ? c[i] : 0); + ret = snprintf(buf + offset, remain, + isprint(c[i]) ? "%c" : "\\x%02hhx", + c[i]); SNPRINTF_BUFFER_SIZE(ret, remain, offset); } - ret = snprintf(buf + offset, remain, " }\n"); + ret = snprintf(buf + offset, remain, " }"); SNPRINTF_BUFFER_SIZE(ret, remain, offset); }
