summaryrefslogtreecommitdiff
path: root/sys-fs/duperemove/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-21 23:10:38 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-21 23:10:38 +0000
commit51a01b0f2371b8dfc39f2747ecafd7d5f083ecb4 (patch)
tree55d5c62353eb98ea2809ea087e9fc4b215c53563 /sys-fs/duperemove/files
parent46de1a2f454a1465026d681f5dfe8db7dde5b126 (diff)
gentoo auto-resync : 21:11:2023 - 23:10:38
Diffstat (limited to 'sys-fs/duperemove/files')
-rw-r--r--sys-fs/duperemove/files/duperemove-0.14-wformat-security.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-fs/duperemove/files/duperemove-0.14-wformat-security.patch b/sys-fs/duperemove/files/duperemove-0.14-wformat-security.patch
new file mode 100644
index 000000000000..43c946ca35fe
--- /dev/null
+++ b/sys-fs/duperemove/files/duperemove-0.14-wformat-security.patch
@@ -0,0 +1,25 @@
+https://github.com/markfasheh/duperemove/commit/5cbcc65254cf684b4281b278b5ee38c82d0a3ee5
+
+From 5cbcc65254cf684b4281b278b5ee38c82d0a3ee5 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich@gmail.com>
+Date: Mon, 20 Nov 2023 21:09:58 +0000
+Subject: [PATCH] util.c: make debug helper `-Wformat-security`-clean
+
+Without the change `gcc-14` fails the build with `-Werror=format-security`
+as:
+
+ util.c:340:25: error: format not a string literal and no format arguments [-Werror=format-security]
+ 340 | fprintf(stream, buf);
+ | ^~~
+
+It's a harmless warning as `UUID` has a well-defined set of characters.
+But `fputs()` expresses intent more directly to print the string as is.
+--- a/util.c
++++ b/util.c
+@@ -337,5 +337,5 @@ void debug_print_uuid(FILE *stream, uuid_t uuid)
+ {
+ char buf[37];
+ uuid_unparse(uuid, buf);
+- fprintf(stream, buf);
++ fputs(buf, stream);
+ }