From d708c52834cc5a8e5d4b8f2235539770a2e3119e Mon Sep 17 00:00:00 2001 From: Dennis Herrmann Date: Fri, 8 Jan 2010 20:02:31 +0000 Subject: - Add patch that's fix core dump, when an FTP server rejects a file retrieval operation with permission denied. - bump PORTREVISION PR: ports/142454 Submitted by: Aragon Gouveia --- sysutils/fusefs-curlftpfs/Makefile | 2 +- sysutils/fusefs-curlftpfs/files/patch-ftpfs.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sysutils/fusefs-curlftpfs/files/patch-ftpfs.c (limited to 'sysutils') diff --git a/sysutils/fusefs-curlftpfs/Makefile b/sysutils/fusefs-curlftpfs/Makefile index d1e651117409..43c2a9d14922 100644 --- a/sysutils/fusefs-curlftpfs/Makefile +++ b/sysutils/fusefs-curlftpfs/Makefile @@ -7,7 +7,7 @@ PORTNAME= curlftpfs PORTVERSION= 0.9.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF PKGNAMEPREFIX= fusefs- diff --git a/sysutils/fusefs-curlftpfs/files/patch-ftpfs.c b/sysutils/fusefs-curlftpfs/files/patch-ftpfs.c new file mode 100644 index 000000000000..42f6e1c4ee12 --- /dev/null +++ b/sysutils/fusefs-curlftpfs/files/patch-ftpfs.c @@ -0,0 +1,19 @@ +--- ./ftpfs.c.orig 2008-04-30 01:05:47.000000000 +0200 ++++ ./ftpfs.c 2010-01-08 19:14:39.000000000 +0100 +@@ -611,10 +611,12 @@ + 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); ++ if (fh->data_avail) { ++ sem_destroy(&fh->data_avail); ++ sem_destroy(&fh->data_need); ++ sem_destroy(&fh->data_written); ++ sem_destroy(&fh->ready); ++ } + free(fh); + } + -- cgit v1.2.3