pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/filesystems
Module Name: pkgsrc
Committed By: riastradh
Date: Tue Aug 6 18:54:03 UTC 2024
Modified Files:
pkgsrc/filesystems/glusterfs: Makefile distinfo
pkgsrc/filesystems/glusterfs/patches: patch-cli_src_cli-xml-output.c
pkgsrc/filesystems/glusterfs8: Makefile distinfo
pkgsrc/filesystems/glusterfs8/patches: patch-cli_src_cli-xml-output.c
patch-xlators_mgmt_glusterd_src_glusterd-utils.c
Added Files:
pkgsrc/filesystems/glusterfs/patches: patch-api_src_glfs.c
patch-cli_src_cli-cmd-parser.c
patch-extras_geo-rep_gsync-sync-gfid.c
patch-geo-replication_src_procdiggy.c
patch-xlators_cluster_ec_src_ec-code.c
patch-xlators_debug_io-stats_src_io-stats.c
patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c
patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c
patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c
patch-xlators_mgmt_glusterd_src_glusterd-pmap.c
patch-xlators_mgmt_glusterd_src_glusterd-utils.c
patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
pkgsrc/filesystems/glusterfs8/patches: patch-api_src_glfs.c
patch-cli_src_cli-cmd-parser.c
patch-extras_geo-rep_gsync-sync-gfid.c
patch-geo-replication_src_procdiggy.c
patch-xlators_cluster_ec_src_ec-code.c
patch-xlators_debug_io-stats_src_io-stats.c
patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c
patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c
patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c
patch-xlators_mgmt_glusterd_src_glusterd-pmap.c
patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
Log Message:
filesystems/gluster: Patch ctype(3) abuse.
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 pkgsrc/filesystems/glusterfs/Makefile
cvs rdiff -u -r1.79 -r1.80 pkgsrc/filesystems/glusterfs/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/filesystems/glusterfs/patches/patch-api_src_glfs.c \
pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-cmd-parser.c \
pkgsrc/filesystems/glusterfs/patches/patch-extras_geo-rep_gsync-sync-gfid.c \
pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_src_procdiggy.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_cluster_ec_src_ec-code.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_debug_io-stats_src_io-stats.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c
cvs rdiff -u -r0 -r1.4 \
pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c
cvs rdiff -u -r1.8 -r1.9 pkgsrc/filesystems/glusterfs8/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/filesystems/glusterfs8/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/filesystems/glusterfs8/patches/patch-api_src_glfs.c \
pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-cmd-parser.c \
pkgsrc/filesystems/glusterfs8/patches/patch-extras_geo-rep_gsync-sync-gfid.c \
pkgsrc/filesystems/glusterfs8/patches/patch-geo-replication_src_procdiggy.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_cluster_ec_src_ec-code.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_debug_io-stats_src_io-stats.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
cvs rdiff -u -r1.1 -r1.2 \
pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c \
pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/filesystems/glusterfs/Makefile
diff -u pkgsrc/filesystems/glusterfs/Makefile:1.124 pkgsrc/filesystems/glusterfs/Makefile:1.125
--- pkgsrc/filesystems/glusterfs/Makefile:1.124 Tue Aug 6 18:51:18 2024
+++ pkgsrc/filesystems/glusterfs/Makefile Tue Aug 6 18:54:01 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.124 2024/08/06 18:51:18 riastradh Exp $
+# $NetBSD: Makefile,v 1.125 2024/08/06 18:54:01 riastradh Exp $
DISTNAME= glusterfs-10.4
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= filesystems
MASTER_SITES= https://bits.gluster.org/pub/gluster/glusterfs/src/
Index: pkgsrc/filesystems/glusterfs/distinfo
diff -u pkgsrc/filesystems/glusterfs/distinfo:1.79 pkgsrc/filesystems/glusterfs/distinfo:1.80
--- pkgsrc/filesystems/glusterfs/distinfo:1.79 Tue Aug 6 18:51:18 2024
+++ pkgsrc/filesystems/glusterfs/distinfo Tue Aug 6 18:54:01 2024
@@ -1,19 +1,31 @@
-$NetBSD: distinfo,v 1.79 2024/08/06 18:51:18 riastradh Exp $
+$NetBSD: distinfo,v 1.80 2024/08/06 18:54:01 riastradh Exp $
BLAKE2s (glusterfs-10.4.tar.gz) = 9813ba102591f6ab715fc7d3dc089860888effe70dc146a4366667be0cc9bd0c
SHA512 (glusterfs-10.4.tar.gz) = 06c563ab77a29145b1fac44f5a56a91539accb69ba736fe6297aa3f38b128e68ba4f7d0b49ac6eb56397a51950fb4de882ff60037e91c61ad13dd89a18139d82
Size (glusterfs-10.4.tar.gz) = 8293872 bytes
-SHA1 (patch-cli_src_cli-xml-output.c) = 1448eec53bce1bdcd35e2363d126d29c11db64c6
+SHA1 (patch-api_src_glfs.c) = 0092cae6a58a58b58e51a5aa90a4423ac32f0100
+SHA1 (patch-cli_src_cli-cmd-parser.c) = 50415e57abe2e7385df326434cde357958070356
+SHA1 (patch-cli_src_cli-xml-output.c) = 44326b6936bc2576fcce74b0a5390f1b641354a7
SHA1 (patch-configure.ac) = bc76ecb683f7a6eef32d6b11f86df4760c12e032
SHA1 (patch-contrib_umountd_umountd.c) = 631ecf62ff5815d1d935b12ccf0e8d285eed4319
SHA1 (patch-events-src-Makefile.am) = 5a112994c9990962a19eecd3933dabb18d5db2b0
SHA1 (patch-events-tools-Makefile.am) = b224ed16200befdb68e51eebd762257a0911e591
SHA1 (patch-extras-Makefile.am) = e5dead8310eed0fa0c6b12aa7a0da52bbeb4d41b
SHA1 (patch-extras-ganesha-config-Makefile.am) = 547f144948a394aa981a0b799cb7435681f8a5d5
+SHA1 (patch-extras_geo-rep_gsync-sync-gfid.c) = a31c0539580089228f3f45c02455c6b577fadbc8
SHA1 (patch-geo-replication_Makefile.am) = 71c2b4fa9d14d8489db8eaff11f7801792f53122
+SHA1 (patch-geo-replication_src_procdiggy.c) = 7fbd4e39bb6a655b1b06874d26849f938b9ec942
SHA1 (patch-libglusterfs-src-glusterfs-dict.h) = ebfdfe6ffbdda3532d15fe108d4214b1e9596304
SHA1 (patch-libglusterfs_src_glusterfs_logging.h) = eefd14b5b6711e1002f925ea3c421a8ced3cb365
SHA1 (patch-rpc_rpc-lib_src_xdr-rpc.h) = 0abbb0498c264922b0a36db0ef696666186805f6
+SHA1 (patch-xlators_cluster_ec_src_ec-code.c) = c89118e1a57f603b8bb5e4b55b127c016b4c6e52
SHA1 (patch-xlators_cluster_ec_src_ec.c) = cc0e17403e544ce54fb0758c92d2d43b86ba2e66
+SHA1 (patch-xlators_debug_io-stats_src_io-stats.c) = 2e030b81b8d4486838eabe85850022e2a14bcb6e
SHA1 (patch-xlators_features_index_src_index.c) = 1eb997f585231d9ec53e5e9f252b9a3594597b80
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c) = 544936587107dab83467b41ee9b5b6bfa54bd4a4
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c) = dcc40fc3370bce694469b3cd0284e65d476afcff
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c) = 5a24dc7f8c65e1a9cc4089c1be7a34b4c8a5dfc6
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-pmap.c) = 122aa9befa8212b468c18180323b7d14c734560a
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-utils.c) = 99fe72105a9cc0681a8b0c42d75f5e2d8e3b8aa6
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c) = 15e7337832f5cadb846bf50800c9a761356cabf3
SHA1 (patch-xlators_storage_posix_src_posix-inode-fd-ops.c) = 47cead403a15bd440b91c2a1673359095f2e1bdb
Index: pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c
diff -u pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c:1.1 pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c:1.2
--- pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c:1.1 Tue Aug 6 18:51:19 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-xml-output.c Tue Aug 6 18:54:02 2024
@@ -1,7 +1,9 @@
-$NetBSD: patch-cli_src_cli-xml-output.c,v 1.1 2024/08/06 18:51:19 riastradh Exp $
+$NetBSD: patch-cli_src_cli-xml-output.c,v 1.2 2024/08/06 18:54:02 riastradh Exp $
Fix time type cast abuse.
+Avoid ctype(3) abuse.
+
--- cli/src/cli-xml-output.c.orig 2023-04-06 09:01:24.673967239 +0000
+++ cli/src/cli-xml-output.c
@@ -1661,6 +1661,8 @@ cli_xml_output_vol_top_rw_perf(xmlTextWr
@@ -32,3 +34,21 @@ Fix time type cast abuse.
gf_time_fmt_tv(timestr, sizeof timestr, &tv, gf_timefmt_FT);
ret = xmlTextWriterWriteFormatElement(writer, (xmlChar *)"time", "%s",
+@@ -3413,7 +3417,7 @@ _output_gsync_config(FILE *fp, xmlTextWr
+ break;
+
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v)) {
++ while (isspace((unsigned char)*v)) {
+ /* strip trailing space */
+ *v-- = '\0';
+ }
+@@ -3435,7 +3439,7 @@ _output_gsync_config(FILE *fp, xmlTextWr
+ goto out;
+ }
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v) {
Index: pkgsrc/filesystems/glusterfs8/Makefile
diff -u pkgsrc/filesystems/glusterfs8/Makefile:1.8 pkgsrc/filesystems/glusterfs8/Makefile:1.9
--- pkgsrc/filesystems/glusterfs8/Makefile:1.8 Tue Aug 6 18:51:19 2024
+++ pkgsrc/filesystems/glusterfs8/Makefile Tue Aug 6 18:54:02 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2024/08/06 18:51:19 riastradh Exp $
+# $NetBSD: Makefile,v 1.9 2024/08/06 18:54:02 riastradh Exp $
DISTNAME= glusterfs-8.2
-PKGREVISION= 15
+PKGREVISION= 17
CATEGORIES= filesystems
MASTER_SITES= http://bits.gluster.org/pub/gluster/glusterfs/src/
Index: pkgsrc/filesystems/glusterfs8/distinfo
diff -u pkgsrc/filesystems/glusterfs8/distinfo:1.2 pkgsrc/filesystems/glusterfs8/distinfo:1.3
--- pkgsrc/filesystems/glusterfs8/distinfo:1.2 Tue Aug 6 18:51:19 2024
+++ pkgsrc/filesystems/glusterfs8/distinfo Tue Aug 6 18:54:02 2024
@@ -1,21 +1,32 @@
-$NetBSD: distinfo,v 1.2 2024/08/06 18:51:19 riastradh Exp $
+$NetBSD: distinfo,v 1.3 2024/08/06 18:54:02 riastradh Exp $
BLAKE2s (glusterfs-8.2.tar.gz) = 8e3161a768b5875b190f44cc3698de3ea9703c2550306c019dc6776c4ab12cd7
SHA512 (glusterfs-8.2.tar.gz) = e11ffd544cdfd55e4309bcf10d9f6d3cb13b3c0beeaf578e024c9b40df19f5bc5dc6965bca1166e96e05e42041093c48772b160952c235f7456f0898594d01d2
Size (glusterfs-8.2.tar.gz) = 7761620 bytes
-SHA1 (patch-cli_src_cli-xml-output.c) = 594cdba0a33f9343b8e29b90f4af2ceb448d403d
+SHA1 (patch-api_src_glfs.c) = 745a6c08a88f6c561e1dddf40c2b8da954a2fe10
+SHA1 (patch-cli_src_cli-cmd-parser.c) = 1c6912cdd346f3f577b15e1be73af5d48a8ca8f9
+SHA1 (patch-cli_src_cli-xml-output.c) = 8c52ce4f959063d5ba6fd218691c298abf552d5b
SHA1 (patch-cli_src_cli.c) = 118117233b0a2974cc6e6b898155ec3eca79dd22
SHA1 (patch-config.h.in) = 1560806ebd786139b404544461dcda0ec1d60b37
SHA1 (patch-configure) = 07d7a61d7c24ab8b0e4bb00ab6ae2452e41d903f
SHA1 (patch-configure.ac) = fcb7da30005e9a08e7a0f4ac2f5e55511580aa18
SHA1 (patch-contrib_umountd_umountd.c) = 3597f0e85608dc0fd39c5bf0c180f59cd8b3fe86
+SHA1 (patch-extras_geo-rep_gsync-sync-gfid.c) = cc2fe6f936c67dbf4637bd054d5fdf41afc1ff42
+SHA1 (patch-geo-replication_src_procdiggy.c) = a6ab72bf15b4e256e34cba92e4c0dcb20c2a4d92
SHA1 (patch-libglusterfs_src_glusterfs_logging.h) = eefd14b5b6711e1002f925ea3c421a8ced3cb365
SHA1 (patch-rpc_rpc-lib_src_xdr-rpc.h) = 6a3826bbacdd082551dd34fd51a4d0be268b102d
SHA1 (patch-rpc_rpc_lib_rpcsvc.c) = 287e5da091a2610ee010a44a5b51a90a402cff01
SHA1 (patch-tools_gfind__missing__files_gfind__missing__files.sh) = 67d374d8dc3213bd3d159e7cb8479c14e8ba162d
+SHA1 (patch-xlators_cluster_ec_src_ec-code.c) = 9ca3118c9fb79e8d3b5a8a8dc818372a0d76fe72
SHA1 (patch-xlators_cluster_ec_src_ec.c) = f5becc3ba27cb3510b455ecbba7c2b8ca8370bb3
+SHA1 (patch-xlators_debug_io-stats_src_io-stats.c) = 5f96fdd97db7e17d01dd8d8bf581baf9201bcfd0
SHA1 (patch-xlators_features_index_src_index.c) = b8cccd113afe10ff0ec446f9ba7de7cf245dbca4
-SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-utils.c) = 3e8e6fa5e4baff94532f58a6509f7b5817ce02bf
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c) = 495a280d8116adc6a1d34a2c1b91abb2e1deb5ac
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c) = 360bb4db26fcdd692f8263b8e9370536cc08c537
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c) = 5a9453a77a53e2793df2580c8b7ba28f05145e87
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-pmap.c) = 5bf5b29f77ce88a40be24987ba1e5d0b84aedd84
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-utils.c) = f7b7c0b464c39ff915ef4c7234a7480999995f69
+SHA1 (patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c) = f8483935f3c7dd70f7c0c1fb1711ac45882a74d3
SHA1 (patch-xlators_mount_fuse_src_fuse-bridge.c) = 4706bc7264b7e4ec7f01cc143f3edce96213401e
SHA1 (patch-xlators_performance_write-behind_src_write-behind.c) = cf3eea86ab4255a7714b25a35a98495eff0f772e
SHA1 (patch-xlators_storage_posix_src_posix-entry-ops.c) = 2c1acf30097ca4ce7b6ec6e1212f989c86201553
Index: pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c
diff -u pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c:1.1 pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c:1.2
--- pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c:1.1 Tue Aug 6 18:51:19 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-xml-output.c Tue Aug 6 18:54:02 2024
@@ -1,6 +1,7 @@
-$NetBSD: patch-cli_src_cli-xml-output.c,v 1.1 2024/08/06 18:51:19 riastradh Exp $
+$NetBSD: patch-cli_src_cli-xml-output.c,v 1.2 2024/08/06 18:54:02 riastradh Exp $
Avoid wrong-size integer casts and fix format string.
+Avoid ctype(3) abuse.
--- cli/src/cli-xml-output.c.orig 2020-09-16 18:40:32.172503539 +0000
+++ cli/src/cli-xml-output.c
@@ -37,3 +38,21 @@ Avoid wrong-size integer casts and fix f
time_usec);
ret = xmlTextWriterWriteFormatElement(writer, (xmlChar *)"time", "%s",
timestr);
+@@ -3425,7 +3425,7 @@ _output_gsync_config(FILE *fp, xmlTextWr
+ break;
+
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v)) {
++ while (isspace((unsigned char)*v)) {
+ /* strip trailing space */
+ *v-- = '\0';
+ }
+@@ -3447,7 +3447,7 @@ _output_gsync_config(FILE *fp, xmlTextWr
+ goto out;
+ }
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v) {
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c
diff -u pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c:1.1 pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c:1.2
--- pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c:1.1 Sun Mar 12 11:55:59 2023
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c Tue Aug 6 18:54:03 2024
@@ -1,8 +1,10 @@
-$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-utils.c,v 1.1 2023/03/12 11:55:59 js Exp $
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-utils.c,v 1.2 2024/08/06 18:54:03 riastradh Exp $
fix NULL pointer reference
From upstream https://review.gluster.org/24726
+Avoid ctype(3) abuse.
+
--- ./xlators/mgmt/glusterd/src/glusterd-utils.c.orig 2020-07-10 02:53:59.416898136 +0200
+++ ./xlators/mgmt/glusterd/src/glusterd-utils.c 2020-07-10 02:54:16.956178597 +0200
@@ -6394,9 +6394,10 @@
@@ -17,3 +19,12 @@ From upstream https://review.gluster.org
}
int
+@@ -7177,7 +7178,7 @@ glusterd_parse_inode_size(char *stream,
+ needle = nwstrtail(needle, pattern);
+
+ trail = needle;
+- while (trail && isdigit(*trail))
++ while (trail && isdigit((unsigned char)*trail))
+ trail++;
+ if (trail)
+ *trail = '\0';
Added files:
Index: pkgsrc/filesystems/glusterfs/patches/patch-api_src_glfs.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-api_src_glfs.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-api_src_glfs.c Tue Aug 6 18:54:01 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-api_src_glfs.c,v 1.1 2024/08/06 18:54:01 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- api/src/glfs.c.orig 2023-04-06 09:01:24.660967197 +0000
++++ api/src/glfs.c
+@@ -861,7 +861,7 @@ pub_glfs_new(const char *volname)
+ }
+
+ for (i = 0; i < strlen(volname); i++) {
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ errno = EINVAL;
+ return NULL;
Index: pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-cmd-parser.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-cmd-parser.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-cli_src_cli-cmd-parser.c Tue Aug 6 18:54:01 2024
@@ -0,0 +1,42 @@
+$NetBSD: patch-cli_src_cli-cmd-parser.c,v 1.1 2024/08/06 18:54:01 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- cli/src/cli-cmd-parser.c.orig 2023-04-06 09:01:24.665967213 +0000
++++ cli/src/cli-cmd-parser.c
+@@ -536,7 +536,7 @@ cli_validate_volname(const char *volname
+ }
+
+ for (i = 0; i < volname_len; i++) {
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ cli_err(
+ "Volume name should not contain \"%c\""
+@@ -4068,7 +4068,7 @@ cli_snap_clone_parse(dict_t *dict, const
+ clonename = (char *)words[cmdi];
+ for (i = 0; i < strlen(clonename); i++) {
+ /* Following volume name convention */
+- if (!isalnum(clonename[i]) &&
++ if (!isalnum((unsigned char)clonename[i]) &&
+ (clonename[i] != '_' && (clonename[i] != '-'))) {
+ /* TODO : Is this message enough?? */
+ cli_err(
+@@ -4150,7 +4150,7 @@ cli_snap_create_parse(dict_t *dict, cons
+ snapname = (char *)words[cmdi];
+ for (i = 0; i < strlen(snapname); i++) {
+ /* Following volume name convention */
+- if (!isalnum(snapname[i]) &&
++ if (!isalnum((unsigned char)snapname[i]) &&
+ (snapname[i] != '_' && (snapname[i] != '-'))) {
+ /* TODO : Is this message enough?? */
+ cli_err(
+@@ -5363,7 +5363,7 @@ cli_cmd_validate_volume(char *volname)
+ }
+
+ for (i = 0; i < volname_len; i++)
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ cli_err(
+ "Volume name should not contain \"%c\""
Index: pkgsrc/filesystems/glusterfs/patches/patch-extras_geo-rep_gsync-sync-gfid.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-extras_geo-rep_gsync-sync-gfid.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-extras_geo-rep_gsync-sync-gfid.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-extras_geo-rep_gsync-sync-gfid.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- extras/geo-rep/gsync-sync-gfid.c.orig 2023-04-06 09:01:24.705967342 +0000
++++ extras/geo-rep/gsync-sync-gfid.c
+@@ -63,7 +63,7 @@ main(int argc, char *argv[])
+
+ path += UUID_CANONICAL_FORM_LEN + 1;
+
+- while (isspace(*path))
++ while (isspace((unsigned char)*path))
+ path++;
+
+ len = strlen(line);
Index: pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_src_procdiggy.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_src_procdiggy.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_src_procdiggy.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-geo-replication_src_procdiggy.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- geo-replication/src/procdiggy.c.orig 2023-04-06 09:01:24.722967396 +0000
++++ geo-replication/src/procdiggy.c
+@@ -55,7 +55,7 @@ pidinfo(pid_t pid, char **name)
+ if (name && !*name) {
+ p = strtail(buf, "Name:");
+ if (p) {
+- while (isspace(*++p))
++ while (isspace((unsigned char)*++p))
+ ;
+ *name = gf_strdup(p);
+ if (!*name) {
+@@ -71,7 +71,7 @@ pidinfo(pid_t pid, char **name)
+ break;
+ }
+
+- while (isspace(*++p))
++ while (isspace((unsigned char)*++p))
+ ;
+ ret = gf_string2int(p, &lpid);
+ if (ret == -1)
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_cluster_ec_src_ec-code.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_cluster_ec_src_ec-code.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_cluster_ec_src_ec-code.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_cluster_ec_src_ec-code.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/cluster/ec/src/ec-code.c.orig 2023-04-06 09:01:24.919968028 +0000
++++ xlators/cluster/ec/src/ec-code.c
+@@ -838,7 +838,7 @@ ec_code_proc_trim_left(char *text, ssize
+ {
+ ssize_t len;
+
+- for (len = *length; (len > 0) && isspace(*text); len--) {
++ for (len = *length; (len > 0) && isspace((unsigned char)*text); len--) {
+ text++;
+ }
+ *length = len;
+@@ -856,7 +856,7 @@ ec_code_proc_trim_right(char *text, ssiz
+
+ last = text;
+ for (len = *length; (len > 0) && (*text != sep); len--) {
+- if (!isspace(*text)) {
++ if (!isspace((unsigned char)*text)) {
+ last = text + 1;
+ }
+ text++;
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_debug_io-stats_src_io-stats.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_debug_io-stats_src_io-stats.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_debug_io-stats_src_io-stats.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_debug_io-stats_src_io-stats.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/debug/io-stats/src/io-stats.c.orig 2023-04-06 09:01:24.932968070 +0000
++++ xlators/debug/io-stats/src/io-stats.c
+@@ -848,7 +848,7 @@ io_stats_dump_global_to_json_logfp(xlato
+ for (i = 0; i < GF_FOP_MAXVALUE; i++) {
+ lc_fop_name = strdupa(gf_fop_list[i]);
+ for (j = 0; lc_fop_name[j]; j++) {
+- lc_fop_name[j] = tolower(lc_fop_name[j]);
++ lc_fop_name[j] = tolower((unsigned char)lc_fop_name[j]);
+ }
+
+ fop_hits = GF_ATOMIC_GET(stats->fop_hits[i]);
+@@ -905,7 +905,7 @@ io_stats_dump_global_to_json_logfp(xlato
+ for (i = 0; i < GF_UPCALL_FLAGS_MAXVALUE; i++) {
+ lc_fop_name = strdupa(gf_upcall_list[i]);
+ for (j = 0; lc_fop_name[j]; j++) {
+- lc_fop_name[j] = tolower(lc_fop_name[j]);
++ lc_fop_name[j] = tolower((unsigned char)lc_fop_name[j]);
+ }
+ fop_hits = GF_ATOMIC_GET(stats->upcall_hits[i]);
+ if (interval == -1) {
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-ganesha.c.orig 2023-04-06 09:01:24.993968265 +0000
++++ xlators/mgmt/glusterd/src/glusterd-ganesha.c
+@@ -52,7 +52,7 @@ parsing_ganesha_ha_conf(const char *key)
+ if (*pointer == '#') {
+ continue;
+ }
+- while (isblank(*pointer)) {
++ while (isblank((unsigned char)*pointer)) {
+ pointer++;
+ }
+ if (strncmp(pointer, key, strlen(key))) {
+@@ -80,7 +80,7 @@ parsing_ganesha_ha_conf(const char *key)
+ do {
+ end_pointer++;
+ } while (!(*end_pointer == '\'' || *end_pointer == '"' ||
+- isspace(*end_pointer) || *end_pointer == '\0'));
++ isspace((unsigned char)*end_pointer) || *end_pointer == '\0'));
+ *end_pointer = '\0';
+
+ /* got it. copy it and return */
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,51 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-geo-rep.c.orig 2023-04-06 09:01:24.994968268 +0000
++++ xlators/mgmt/glusterd/src/glusterd-geo-rep.c
+@@ -764,7 +764,7 @@ _fcbk_conftodict(char *resbuf, size_t bl
+ if (!ptr)
+ break;
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ /* strip trailing space */
+ *v-- = '\0';
+ if (v == resbuf)
+@@ -774,7 +774,7 @@ _fcbk_conftodict(char *resbuf, size_t bl
+ if (!v)
+ return -1;
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v)
+@@ -830,7 +830,7 @@ _fcbk_statustostruct(char *resbuf, size_
+ break;
+
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ /* strip trailing space */
+ *v-- = '\0';
+ if (v == resbuf)
+@@ -840,7 +840,7 @@ _fcbk_statustostruct(char *resbuf, size_
+ if (!v)
+ return -1;
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v)
+@@ -4431,7 +4431,7 @@ glusterd_gsync_read_frm_status(char *pat
+ ret = -1;
+ } else {
+ char *p = buf + len - 1;
+- while (isspace(*p))
++ while (isspace((unsigned char)*p))
+ *p-- = '\0';
+ }
+ } else if (ret == 0)
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-mountbroker.c.orig 2023-04-06 09:01:25.000968288 +0000
++++ xlators/mgmt/glusterd/src/glusterd-mountbroker.c
+@@ -142,7 +142,7 @@ parse_mount_pattern_desc(gf_mount_spec_t
+ ret = SYNTAX_ERR;
+ goto out;
+ }
+- while (!strchr("|&)", *c2) && !isspace(*c2))
++ while (!strchr("|&)", *c2) && !isspace((unsigned char)*c2))
+ c2++;
+ skipwhite(&c2);
+ switch (*c2) {
+@@ -184,7 +184,7 @@ parse_mount_pattern_desc(gf_mount_spec_t
+ c2 = ""; /* reset c2 */
+ while (*c2 != ')') {
+ c2 = curs;
+- while (!isspace(*c2) && *c2 != ')')
++ while (!isspace((unsigned char)*c2) && *c2 != ')')
+ c2++;
+ sc = *c2;
+ *c2 = '\0';
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-pmap.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-pmap.c.orig 2023-04-06 09:01:25.007968310 +0000
++++ xlators/mgmt/glusterd/src/glusterd-pmap.c
+@@ -154,7 +154,7 @@ pmap_registry_search(xlator_t *this, cha
+ {
+ brck = tmp_port->brickname;
+ for (;;) {
+- for (i = 0; brck[i] && !isspace(brck[i]); ++i)
++ for (i = 0; brck[i] && !isspace((unsigned char)brck[i]); ++i)
+ ;
+ if (i == 0 && brck[i] == '\0')
+ break;
+@@ -179,7 +179,7 @@ pmap_registry_search(xlator_t *this, cha
+ * Skip over *any* amount of whitespace, including
+ * none (if we're already at the end of the string).
+ */
+- while (isspace(*brck))
++ while (isspace((unsigned char)*brck))
+ ++brck;
+ /*
+ * We're either at the end of the string (which will be
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-volume-set.c.orig 2023-04-06 09:01:25.037968406 +0000
++++ xlators/mgmt/glusterd/src/glusterd-volume-set.c
+@@ -211,7 +211,7 @@ validate_uss_dir(glusterd_volinfo_t *vol
+ }
+
+ for (i = 1; value[i]; i++) {
+- if (isalnum(value[i]) || value[i] == '_' || value[i] == '-')
++ if (isalnum((unsigned char)value[i]) || value[i] == '_' || value[i] == '-')
+ continue;
+
+ snprintf(errstr, sizeof(errstr),
Index: pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c:1.4
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs/patches/patch-xlators_mgmt_glusterd_src_glusterd-utils.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-utils.c,v 1.4 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-utils.c.orig 2023-04-06 09:01:25.033968393 +0000
++++ xlators/mgmt/glusterd/src/glusterd-utils.c
+@@ -7461,7 +7461,7 @@ glusterd_parse_inode_size(char *stream,
+ needle = nwstrtail(needle, pattern);
+
+ trail = needle;
+- while (trail && isdigit(*trail))
++ while (trail && isdigit((unsigned char)*trail))
+ trail++;
+ if (trail)
+ *trail = '\0';
Index: pkgsrc/filesystems/glusterfs8/patches/patch-api_src_glfs.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-api_src_glfs.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-api_src_glfs.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-api_src_glfs.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- api/src/glfs.c.orig 2020-09-16 18:40:32.159503531 +0000
++++ api/src/glfs.c
+@@ -827,7 +827,7 @@ pub_glfs_new(const char *volname)
+ }
+
+ for (i = 0; i < strlen(volname); i++) {
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ errno = EINVAL;
+ return NULL;
Index: pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-cmd-parser.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-cmd-parser.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-cli_src_cli-cmd-parser.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,42 @@
+$NetBSD: patch-cli_src_cli-cmd-parser.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- cli/src/cli-cmd-parser.c.orig 2024-08-06 15:42:52.470503130 +0000
++++ cli/src/cli-cmd-parser.c
+@@ -535,7 +535,7 @@ cli_validate_volname(const char *volname
+ }
+
+ for (i = 0; i < volname_len; i++) {
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ cli_err(
+ "Volume name should not contain \"%c\""
+@@ -4273,7 +4273,7 @@ cli_snap_clone_parse(dict_t *dict, const
+ clonename = (char *)words[cmdi];
+ for (i = 0; i < strlen(clonename); i++) {
+ /* Following volume name convention */
+- if (!isalnum(clonename[i]) &&
++ if (!isalnum((unsigned char)clonename[i]) &&
+ (clonename[i] != '_' && (clonename[i] != '-'))) {
+ /* TODO : Is this message enough?? */
+ cli_err(
+@@ -4356,7 +4356,7 @@ cli_snap_create_parse(dict_t *dict, cons
+ snapname = (char *)words[cmdi];
+ for (i = 0; i < strlen(snapname); i++) {
+ /* Following volume name convention */
+- if (!isalnum(snapname[i]) &&
++ if (!isalnum((unsigned char)snapname[i]) &&
+ (snapname[i] != '_' && (snapname[i] != '-'))) {
+ /* TODO : Is this message enough?? */
+ cli_err(
+@@ -5563,7 +5563,7 @@ cli_cmd_validate_volume(char *volname)
+ }
+
+ for (i = 0; i < volname_len; i++)
+- if (!isalnum(volname[i]) && (volname[i] != '_') &&
++ if (!isalnum((unsigned char)volname[i]) && (volname[i] != '_') &&
+ (volname[i] != '-')) {
+ cli_err(
+ "Volume name should not contain \"%c\""
Index: pkgsrc/filesystems/glusterfs8/patches/patch-extras_geo-rep_gsync-sync-gfid.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-extras_geo-rep_gsync-sync-gfid.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-extras_geo-rep_gsync-sync-gfid.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-extras_geo-rep_gsync-sync-gfid.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- extras/geo-rep/gsync-sync-gfid.c.orig 2020-09-16 18:40:32.206503559 +0000
++++ extras/geo-rep/gsync-sync-gfid.c
+@@ -63,7 +63,7 @@ main(int argc, char *argv[])
+
+ path += UUID_CANONICAL_FORM_LEN + 1;
+
+- while (isspace(*path))
++ while (isspace((unsigned char)*path))
+ path++;
+
+ len = strlen(line);
Index: pkgsrc/filesystems/glusterfs8/patches/patch-geo-replication_src_procdiggy.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-geo-replication_src_procdiggy.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-geo-replication_src_procdiggy.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-geo-replication_src_procdiggy.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- geo-replication/src/procdiggy.c.orig 2020-09-16 18:40:32.222503569 +0000
++++ geo-replication/src/procdiggy.c
+@@ -55,7 +55,7 @@ pidinfo(pid_t pid, char **name)
+ if (name && !*name) {
+ p = strtail(buf, "Name:");
+ if (p) {
+- while (isspace(*++p))
++ while (isspace((unsigned char)*++p))
+ ;
+ *name = gf_strdup(p);
+ if (!*name) {
+@@ -71,7 +71,7 @@ pidinfo(pid_t pid, char **name)
+ break;
+ }
+
+- while (isspace(*++p))
++ while (isspace((unsigned char)*++p))
+ ;
+ ret = gf_string2int(p, &lpid);
+ if (ret == -1)
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_cluster_ec_src_ec-code.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_cluster_ec_src_ec-code.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_cluster_ec_src_ec-code.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_cluster_ec_src_ec-code.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/cluster/ec/src/ec-code.c.orig 2020-09-16 18:40:32.387503669 +0000
++++ xlators/cluster/ec/src/ec-code.c
+@@ -838,7 +838,7 @@ ec_code_proc_trim_left(char *text, ssize
+ {
+ ssize_t len;
+
+- for (len = *length; (len > 0) && isspace(*text); len--) {
++ for (len = *length; (len > 0) && isspace((unsigned char)*text); len--) {
+ text++;
+ }
+ *length = len;
+@@ -856,7 +856,7 @@ ec_code_proc_trim_right(char *text, ssiz
+
+ last = text;
+ for (len = *length; (len > 0) && (*text != sep); len--) {
+- if (!isspace(*text)) {
++ if (!isspace((unsigned char)*text)) {
+ last = text + 1;
+ }
+ text++;
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_debug_io-stats_src_io-stats.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_debug_io-stats_src_io-stats.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_debug_io-stats_src_io-stats.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_debug_io-stats_src_io-stats.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/debug/io-stats/src/io-stats.c.orig 2020-09-16 18:40:32.399503676 +0000
++++ xlators/debug/io-stats/src/io-stats.c
+@@ -862,7 +862,7 @@ io_stats_dump_global_to_json_logfp(xlato
+ for (i = 0; i < GF_FOP_MAXVALUE; i++) {
+ lc_fop_name = strdupa(gf_fop_list[i]);
+ for (j = 0; lc_fop_name[j]; j++) {
+- lc_fop_name[j] = tolower(lc_fop_name[j]);
++ lc_fop_name[j] = tolower((unsigned char)lc_fop_name[j]);
+ }
+
+ fop_hits = GF_ATOMIC_GET(stats->fop_hits[i]);
+@@ -919,7 +919,7 @@ io_stats_dump_global_to_json_logfp(xlato
+ for (i = 0; i < GF_UPCALL_FLAGS_MAXVALUE; i++) {
+ lc_fop_name = strdupa(gf_upcall_list[i]);
+ for (j = 0; lc_fop_name[j]; j++) {
+- lc_fop_name[j] = tolower(lc_fop_name[j]);
++ lc_fop_name[j] = tolower((unsigned char)lc_fop_name[j]);
+ }
+ fop_hits = GF_ATOMIC_GET(stats->upcall_hits[i]);
+ if (interval == -1) {
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c Tue Aug 6 18:54:02 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-ganesha.c,v 1.1 2024/08/06 18:54:02 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-ganesha.c.orig 2020-09-16 18:40:32.450503707 +0000
++++ xlators/mgmt/glusterd/src/glusterd-ganesha.c
+@@ -52,7 +52,7 @@ parsing_ganesha_ha_conf(const char *key)
+ if (*pointer == '#') {
+ continue;
+ }
+- while (isblank(*pointer)) {
++ while (isblank((unsigned char)*pointer)) {
+ pointer++;
+ }
+ if (strncmp(pointer, key, strlen(key))) {
+@@ -80,7 +80,7 @@ parsing_ganesha_ha_conf(const char *key)
+ do {
+ end_pointer++;
+ } while (!(*end_pointer == '\'' || *end_pointer == '"' ||
+- isspace(*end_pointer) || *end_pointer == '\0'));
++ isspace((unsigned char)*end_pointer) || *end_pointer == '\0'));
+ *end_pointer = '\0';
+
+ /* got it. copy it and return */
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c Tue Aug 6 18:54:03 2024
@@ -0,0 +1,51 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-geo-rep.c,v 1.1 2024/08/06 18:54:03 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-geo-rep.c.orig 2020-09-16 18:40:32.452503708 +0000
++++ xlators/mgmt/glusterd/src/glusterd-geo-rep.c
+@@ -764,7 +764,7 @@ _fcbk_conftodict(char *resbuf, size_t bl
+ if (!ptr)
+ break;
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ /* strip trailing space */
+ *v-- = '\0';
+ if (v == resbuf)
+@@ -774,7 +774,7 @@ _fcbk_conftodict(char *resbuf, size_t bl
+ if (!v)
+ return -1;
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v)
+@@ -830,7 +830,7 @@ _fcbk_statustostruct(char *resbuf, size_
+ break;
+
+ v = resbuf + strlen(resbuf) - 1;
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ /* strip trailing space */
+ *v-- = '\0';
+ if (v == resbuf)
+@@ -840,7 +840,7 @@ _fcbk_statustostruct(char *resbuf, size_
+ if (!v)
+ return -1;
+ *v++ = '\0';
+- while (isspace(*v))
++ while (isspace((unsigned char)*v))
+ v++;
+ v = gf_strdup(v);
+ if (!v)
+@@ -4478,7 +4478,7 @@ glusterd_gsync_read_frm_status(char *pat
+ ret = -1;
+ } else {
+ char *p = buf + len - 1;
+- while (isspace(*p))
++ while (isspace((unsigned char)*p))
+ *p-- = '\0';
+ }
+ } else if (ret == 0)
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c Tue Aug 6 18:54:03 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-mountbroker.c,v 1.1 2024/08/06 18:54:03 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-mountbroker.c.orig 2020-09-16 18:40:32.461503713 +0000
++++ xlators/mgmt/glusterd/src/glusterd-mountbroker.c
+@@ -141,7 +141,7 @@ parse_mount_pattern_desc(gf_mount_spec_t
+ ret = SYNTAX_ERR;
+ goto out;
+ }
+- while (!strchr("|&)", *c2) && !isspace(*c2))
++ while (!strchr("|&)", *c2) && !isspace((unsigned char)*c2))
+ c2++;
+ skipwhite(&c2);
+ switch (*c2) {
+@@ -183,7 +183,7 @@ parse_mount_pattern_desc(gf_mount_spec_t
+ c2 = ""; /* reset c2 */
+ while (*c2 != ')') {
+ c2 = curs;
+- while (!isspace(*c2) && *c2 != ')')
++ while (!isspace((unsigned char)*c2) && *c2 != ')')
+ c2++;
+ sc = *c2;
+ *c2 = '\0';
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-pmap.c Tue Aug 6 18:54:03 2024
@@ -0,0 +1,24 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-pmap.c,v 1.1 2024/08/06 18:54:03 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-pmap.c.orig 2020-09-16 18:40:32.465503716 +0000
++++ xlators/mgmt/glusterd/src/glusterd-pmap.c
+@@ -113,7 +113,7 @@ pmap_registry_search(xlator_t *this, con
+
+ brck = pmap->ports[p].brickname;
+ for (;;) {
+- for (i = 0; brck[i] && !isspace(brck[i]); ++i)
++ for (i = 0; brck[i] && !isspace((unsigned char)brck[i]); ++i)
+ ;
+ if (i == 0 && brck[i] == '\0')
+ break;
+@@ -138,7 +138,7 @@ pmap_registry_search(xlator_t *this, con
+ * Skip over *any* amount of whitespace, including
+ * none (if we're already at the end of the string).
+ */
+- while (isspace(*brck))
++ while (isspace((unsigned char)*brck))
+ ++brck;
+ /*
+ * We're either at the end of the string (which will be
Index: pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c
diff -u /dev/null pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c:1.1
--- /dev/null Tue Aug 6 18:54:03 2024
+++ pkgsrc/filesystems/glusterfs8/patches/patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c Tue Aug 6 18:54:03 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-xlators_mgmt_glusterd_src_glusterd-volume-set.c,v 1.1 2024/08/06 18:54:03 riastradh Exp $
+
+Avoid ctype(3) abuse.
+
+--- xlators/mgmt/glusterd/src/glusterd-volume-set.c.orig 2020-09-16 18:40:32.488503730 +0000
++++ xlators/mgmt/glusterd/src/glusterd-volume-set.c
+@@ -224,7 +224,7 @@ validate_uss_dir(glusterd_volinfo_t *vol
+ }
+
+ for (i = 1; value[i]; i++) {
+- if (isalnum(value[i]) || value[i] == '_' || value[i] == '-')
++ if (isalnum((unsigned char)value[i]) || value[i] == '_' || value[i] == '-')
+ continue;
+
+ snprintf(errstr, sizeof(errstr),
Home |
Main Index |
Thread Index |
Old Index