summaryrefslogtreecommitdiff
path: root/pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-21 23:29:18 -0700
committerMichael Forney <mforney@mforney.org>2024-03-21 23:29:18 -0700
commit594971b59caa1d75f0179de8d612375f410a7566 (patch)
treedd14cb80cc3c90a9019b0d9442a2dd8d6a02d9df /pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch
parent01eb93d6f752c2bb3815bb794572231651f105fa (diff)
Remove obsolete portability patches with C23 and new cproc
Diffstat (limited to 'pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch')
-rw-r--r--pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch b/pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch
new file mode 100644
index 00000000..a338ce72
--- /dev/null
+++ b/pkg/fuse/patch/0005-Fix-sscanf-format-specifier.patch
@@ -0,0 +1,25 @@
+From b556d59ad2ffa73e4baa4c8345210c70a255296a Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Mon, 6 Sep 2021 23:26:54 -0700
+Subject: [PATCH] Fix sscanf format specifier
+
+---
+ lib/mount_util.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/mount_util.c b/lib/mount_util.c
+index 35e9948..85ab119 100644
+--- a/lib/mount_util.c
++++ b/lib/mount_util.c
+@@ -360,7 +360,7 @@ int fuse_mnt_parse_fuse_fd(const char *mountpoint)
+ int fd = -1;
+ int len = 0;
+
+- if (sscanf(mountpoint, "/dev/fd/%u%n", &fd, &len) == 1 &&
++ if (sscanf(mountpoint, "/dev/fd/%d%n", &fd, &len) == 1 &&
+ len == strlen(mountpoint)) {
+ return fd;
+ }
+--
+2.32.0
+