From 7e5614398a4e6879826b15cca88361947b009b52 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Fri, 22 Jul 2022 12:44:15 -0400 Subject: [PATCH] rpc-pipefs-generator: allocate enough space (bz 2109420) Signed-off-by: Steve Dickson Resolves: bz2109420 --- nfs-utils-2.5.4-rpcpipefs-warn.patch | 2 +- nfs-utils.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nfs-utils-2.5.4-rpcpipefs-warn.patch b/nfs-utils-2.5.4-rpcpipefs-warn.patch index 13bcb3f..6e7282e 100644 --- a/nfs-utils-2.5.4-rpcpipefs-warn.patch +++ b/nfs-utils-2.5.4-rpcpipefs-warn.patch @@ -18,7 +18,7 @@ index c24db567..7b2bb4f7 100644 { char *path; FILE *f; -+ size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit)); ++ size_t size = (strlen(dirname) + 1 + strlen(pipefs_unit) + 1); - path = malloc(strlen(dirname) + 1 + strlen(pipefs_unit)); + path = malloc(size); diff --git a/nfs-utils.spec b/nfs-utils.spec index 205a8f5..1e43d44 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -467,6 +467,7 @@ fi - idmapd: Fix error status when nfs-idmapd exits (bz 2001764) - mount.nfs Fix error reporting for already mounted shares (bz 2054300) - rpcctl - fix failure when setting xprt offline and online (bz 2081934) +- rpc-pipefs-generator: allocate enough space (bz 2109420) * Sat Jul 16 2022 Steve Dickson 2.5.4-11 - nfs.man: adding new mount option max_connect (bz 2106848)