pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/filesystems/fuse-curlftpfs Fix a segfault on NetBSD
details: https://anonhg.NetBSD.org/pkgsrc/rev/c97cf00d770c
branches: trunk
changeset: 371179:c97cf00d770c
user: pho <pho%pkgsrc.org@localhost>
date: Thu Jan 06 03:27:13 2022 +0000
description:
Fix a segfault on NetBSD
diffstat:
filesystems/fuse-curlftpfs/Makefile | 4 ++--
filesystems/fuse-curlftpfs/distinfo | 3 ++-
filesystems/fuse-curlftpfs/patches/patch-ftpfs.c | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r b91cf22e7ae1 -r c97cf00d770c filesystems/fuse-curlftpfs/Makefile
--- a/filesystems/fuse-curlftpfs/Makefile Thu Jan 06 00:09:56 2022 +0000
+++ b/filesystems/fuse-curlftpfs/Makefile Thu Jan 06 03:27:13 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.38 2021/12/08 16:04:20 adam Exp $
+# $NetBSD: Makefile,v 1.39 2022/01/06 03:27:13 pho Exp $
#
DISTNAME= curlftpfs-0.9.2
PKGNAME= fuse-${DISTNAME}
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= filesystems
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=curlftpfs/}
diff -r b91cf22e7ae1 -r c97cf00d770c filesystems/fuse-curlftpfs/distinfo
--- a/filesystems/fuse-curlftpfs/distinfo Thu Jan 06 00:09:56 2022 +0000
+++ b/filesystems/fuse-curlftpfs/distinfo Thu Jan 06 03:27:13 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:25:27 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/01/06 03:27:13 pho Exp $
BLAKE2s (curlftpfs-0.9.2.tar.gz) = 52617dea8aa88fc52b96ed72b1ac2874f27b5a534a525085dcd6a8f9d0713ca5
SHA512 (curlftpfs-0.9.2.tar.gz) = df07c418d175f766c89525017fc56e79726061eee0c3a6607ded0e1bf24f64f1475ba0e546157b65892194e3c4414c120822bf8fb175437e68366f82de216067
Size (curlftpfs-0.9.2.tar.gz) = 365503 bytes
+SHA1 (patch-ftpfs.c) = dbf37d8dd42624a964bd6208662471972c8f2693
SHA1 (patch-ftpfs.h) = e658fe0e9fffa47e69fe35c9f1a8f465aa5c45e6
SHA1 (patch-tests_run__tests.sh) = 2b7b20f3490b8fc0026c148b2a9d7dbac2a33362
diff -r b91cf22e7ae1 -r c97cf00d770c filesystems/fuse-curlftpfs/patches/patch-ftpfs.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-curlftpfs/patches/patch-ftpfs.c Thu Jan 06 03:27:13 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ftpfs.c,v 1.1 2022/01/06 03:27:13 pho Exp $
+
+Destroying an uninitialized sem_t results in a segfault on
+NetBSD. Just don't do that.
+
+--- ftpfs.c.orig 2022-01-06 03:19:08.654567401 +0000
++++ ftpfs.c
+@@ -611,10 +611,6 @@ static void free_ftpfs_file(struct ftpfs
+ curl_easy_cleanup(fh->write_conn);
+ g_free(fh->full_path);
+ g_free(fh->open_path);
+- sem_destroy(&fh->data_avail);
+- sem_destroy(&fh->data_need);
+- sem_destroy(&fh->data_written);
+- sem_destroy(&fh->ready);
+ free(fh);
+ }
+
Home |
Main Index |
Thread Index |
Old Index