From 6c917192782013d0c1fd9d890081d3ea7786ca936e1e7478f9041ed1d3529d2b Mon Sep 17 00:00:00 2001 From: Nikolay Gueorguiev Date: Fri, 19 Apr 2024 15:22:53 +0000 Subject: [PATCH] Accepting request 1169240 from home:ngueorguiev:branches:hardware Changed the patch qclib-change-_PATH_MOUNTED.patch OBS-URL: https://build.opensuse.org/request/show/1169240 OBS-URL: https://build.opensuse.org/package/show/hardware/qclib?expand=0&rev=47 --- qclib-change-_PATH_MOUNTED.patch | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/qclib-change-_PATH_MOUNTED.patch b/qclib-change-_PATH_MOUNTED.patch index 9709057..f23752a 100644 --- a/qclib-change-_PATH_MOUNTED.patch +++ b/qclib-change-_PATH_MOUNTED.patch @@ -1,12 +1,31 @@ --- qclib-2.4.1.orig/query_capacity_hypfs.c 2023-12-17 23:06:06.000000000 +0100 -+++ qclib-2.4.1.changed/query_capacity_hypfs.c 2024-04-19 13:35:35.683106609 +0200 -@@ -11,6 +11,9 @@ ++++ qclib-2.4.1.changed/query_capacity_hypfs.c 2024-04-19 17:07:09.007848701 +0200 +@@ -11,6 +11,7 @@ #include "query_capacity_data.h" -+/* Workaround changing '/etc/mtab' to '/proc/self/mounts' */ -+#define _PATH_MOUNTED "/proc/self/mounts" -+/* */ ++#define N_PATH_MOUNTED "/proc/self/mounts" #define QC_HYPFS_LPAR "/s390_hypfs/diag_204" #define QC_HYPFS_ZVM "/s390_hypfs/diag_2fc" +@@ -830,9 +831,9 @@ + } + qc_debug(hdl, "Locate mount point of %s\n", fstype); + *mp = NULL; +- mounts = setmntent(_PATH_MOUNTED, "r"); ++ mounts = setmntent(N_PATH_MOUNTED, "r"); + if (!mounts) { +- qc_debug(hdl, "Error: Failed to open %s\n", _PATH_MOUNTED); ++ qc_debug(hdl, "Error: Failed to open %s\n", N_PATH_MOUNTED); + return -1; + } + while ((mntbuf = getmntent(mounts)) != NULL) { +@@ -848,7 +849,7 @@ + } + endmntent(mounts); + if (!*mp) { +- qc_debug(hdl, "%s not mounted according to '%s'\n", fstype, _PATH_MOUNTED); ++ qc_debug(hdl, "%s not mounted according to '%s'\n", fstype, N_PATH_MOUNTED); + return 1; + } + qc_debug(hdl, "%s mounted at '%s'\n", fstype, *mp);