From 8d6eaadea31519df06e4dfa5e7bd1aafdcc79e8eff68ea7636af15b8fdae5972 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 16 Aug 2022 01:44:07 +0000 Subject: [PATCH] remove - gcc12-fix.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=264 --- gcc12-fix.patch | 36 ------------------------------------ nfs-utils.changes | 1 + 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 gcc12-fix.patch diff --git a/gcc12-fix.patch b/gcc12-fix.patch deleted file mode 100644 index f1698eb..0000000 --- a/gcc12-fix.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 7f8463fe702174bd613df9d308cc899af25ae02e Mon Sep 17 00:00:00 2001 -From: Steve Dickson -Date: Wed, 23 Feb 2022 15:19:51 -0500 -Subject: [PATCH] systemd: Fix format-overflow warning - -rpc-pipefs-generator.c:35:23: error: '%s' directive output between 0 and 2147483653 bytes may exceed minimum required size of 4095 [-Werror=format-overflow=] - 35 | sprintf(path, "%s/%s", dirname, pipefs_unit); - | ^ - -Signed-off-by: Steve Dickson ---- - systemd/rpc-pipefs-generator.c | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/systemd/rpc-pipefs-generator.c b/systemd/rpc-pipefs-generator.c -index c24db56..7b2bb4f 100644 ---- a/systemd/rpc-pipefs-generator.c -+++ b/systemd/rpc-pipefs-generator.c -@@ -28,11 +28,12 @@ static int generate_mount_unit(const char *pipefs_path, const char *pipefs_unit, - { - char *path; - FILE *f; -+ size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit)); - -- path = malloc(strlen(dirname) + 1 + strlen(pipefs_unit)); -+ path = malloc(size); - if (!path) - return 1; -- sprintf(path, "%s/%s", dirname, pipefs_unit); -+ snprintf(path, size, "%s/%s", dirname, pipefs_unit); - f = fopen(path, "w"); - if (!f) - { --- -1.8.3.1 - diff --git a/nfs-utils.changes b/nfs-utils.changes index 4e38994..79ac2c8 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -4,6 +4,7 @@ Fri Aug 12 08:33:37 UTC 2022 - Petr Vorel - Update to version 2.6.2 - https://kernel.org/pub/linux/utils/nfs-utils/2.6.2/2.6.2-Changelog - Remove patches from this release: + - gcc12-fix.patch - 0001-systemd-Apply-all-sysctl-settings-when-NFS-related-m.patch - 0002-Update-autoconfig-files-to-work-with-v2.71.patch - 0003-autoconf-change-tirpc-to-check-for-a-file-not-for-an.patch