aboutsummaryrefslogtreecommitdiffstats
path: root/community/libblockdev/fix-glibc-glob-onlydir.patch
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-05-29 11:22:20 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 19:38:55 +0000
commite8a6d41558c5f1c919c8486bdc64e3216f5231e3 (patch)
tree287065486b0b924191c1511dc037eb4660a8ec03 /community/libblockdev/fix-glibc-glob-onlydir.patch
parent31ae663718a263e8ace2801e4ec1033e7f053b0b (diff)
downloadaports-e8a6d41558c5f1c919c8486bdc64e3216f5231e3.tar.bz2
aports-e8a6d41558c5f1c919c8486bdc64e3216f5231e3.tar.xz
community/libblockdev: move from main
Diffstat (limited to 'community/libblockdev/fix-glibc-glob-onlydir.patch')
-rw-r--r--community/libblockdev/fix-glibc-glob-onlydir.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/libblockdev/fix-glibc-glob-onlydir.patch b/community/libblockdev/fix-glibc-glob-onlydir.patch
new file mode 100644
index 0000000000..5be3a7bd18
--- /dev/null
+++ b/community/libblockdev/fix-glibc-glob-onlydir.patch
@@ -0,0 +1,13 @@
+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);