aports/main/libblockdev/fix-glibc-glob-onlydir.patch
Kevin Daudt aec10c09c2 main/libblockdev: fix reference to glibc GLOB_ONYLDIR
On s390, the code refers to GLOB_ONLYDIR, which is glibc specific and
according to the manual, only meant as an optmization.

Replace GLOB_ONLYDIR with 0x0 to fix the build on s390x.
2019-05-27 20:16:33 +00:00

14 lines
694 B
Diff

diff --git a/src/plugins/s390.c b/src/plugins/s390.c
index dcb5bc9f7b..1460166b2d 100644
--- a/src/plugins/s390.c
+++ b/src/plugins/s390.c
@@ -973,7 +973,7 @@ gboolean bd_s390_zfcp_offline (const gchar *devno, const gchar *wwpn, const gcha
/* gather the luns */
pattern = g_strdup_printf ("%s/0x??????????????\?\?/0x????????????????", zfcpsysfs);
- rc = glob (pattern, GLOB_ONLYDIR, NULL, &luns);
+ rc = glob (pattern, 0x0, NULL, &luns);
if (rc == GLOB_ABORTED || rc == GLOB_NOSPACE) {
g_set_error (error, BD_S390_ERROR, BD_S390_ERROR_DEVICE,
"An error occurred trying to determine if other LUNs are still associated with WWPN %s", wwpn);