diff options
Diffstat (limited to 'filesystems/fuse-curlftpfs/patches/patch-ftpfs.c')
-rw-r--r-- | filesystems/fuse-curlftpfs/patches/patch-ftpfs.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/filesystems/fuse-curlftpfs/patches/patch-ftpfs.c b/filesystems/fuse-curlftpfs/patches/patch-ftpfs.c new file mode 100644 index 00000000000..d3dbc810664 --- /dev/null +++ b/filesystems/fuse-curlftpfs/patches/patch-ftpfs.c @@ -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); + } + |