diff --git a/backport-fix-format-specifier-for-pointer-subtraction.patch b/backport-fix-format-specifier-for-pointer-subtraction.patch new file mode 100644 index 0000000000000000000000000000000000000000..f6027dbbf8d71ab97f1ee813c3628bdafebbee04 --- /dev/null +++ b/backport-fix-format-specifier-for-pointer-subtraction.patch @@ -0,0 +1,25 @@ +From 8de171d78e8ed4ec757e984a3832566c840c1928 Mon Sep 17 00:00:00 2001 +From: jiawenhao +Date: Thu, 17 Apr 2025 18:04:29 +0800 +Subject: [PATCH] fix-format-specifier-for-pointer-subtraction + +--- + keyctl_watch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/keyctl_watch.c b/keyctl_watch.c +index a70a19a..1436c08 100644 +--- a/keyctl_watch.c ++++ b/keyctl_watch.c +@@ -179,7 +179,7 @@ int consumer(FILE *log, FILE *gc, int fd) + memcpy(&n, p, largest); + + if (debug) +- fprintf(stderr, "NOTIFY[%03zx]: ty=%06x sy=%02x i=%08x\n", ++ fprintf(stderr, "NOTIFY[%03tx]: ty=%06x sy=%02x i=%08x\n", + p - buffer, n.n.type, n.n.subtype, n.n.info); + + len = n.n.info & WATCH_INFO_LENGTH; +-- +2.27.0 + diff --git a/keyutils.spec b/keyutils.spec index cf86388774d1b4dc622acf58d3b715b5aaa7b469..994948364f8b712b05bae73ffb61711ff7687028 100644 --- a/keyutils.spec +++ b/keyutils.spec @@ -1,6 +1,6 @@ Name: keyutils Version: 1.6.3 -Release: 5 +Release: 6 Summary: Utilities of Linux Key Management License: GPLv2+ and LGPLv2+ @@ -8,6 +8,7 @@ Url: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git Source0: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-%{version}.tar.gz Patch9000: bugfix-fix-argv-string-out-of-bounds.patch +Patch9001: backport-fix-format-specifier-for-pointer-subtraction.patch BuildRequires: gcc gcc-c++ BuildRequires: glibc-kernheaders >= 2.4-9.1.92 @@ -96,6 +97,9 @@ make \ %{_mandir}/man*/* %changelog +* Thu Apr 17 2025 jiawenhao - 1.6.3-6 +- DESC: Fix format specifier for pointer subtraction + * Fri Aug 05 2022 xuraoqing - 1.6.3-5 - DESC: fixed incorrect changelog time