debian/0000775000000000000000000000000012130067317007170 5ustar debian/patches/0000775000000000000000000000000012130067435010620 5ustar debian/patches/fix-CURLOPT_INFILESIZE.patch0000664000000000000000000000120411337560606015301 0ustar CURLOPT_INFILESIZE does not support -1 arg. This fix bug #556012. --- curlftpfs-0.9.2/ftpfs.c.old 2009-12-13 14:12:25.000000000 +0100 +++ curlftpfs-0.9.2/ftpfs.c 2009-12-13 14:12:32.000000000 +0100 @@ -503,7 +503,6 @@ curl_easy_setopt_or_die(fh->write_conn, CURLOPT_URL, fh->full_path); curl_easy_setopt_or_die(fh->write_conn, CURLOPT_UPLOAD, 1); - curl_easy_setopt_or_die(fh->write_conn, CURLOPT_INFILESIZE, -1); curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READFUNCTION, write_data_bg); curl_easy_setopt_or_die(fh->write_conn, CURLOPT_READDATA, fh); curl_easy_setopt_or_die(fh->write_conn, CURLOPT_LOW_SPEED_LIMIT, 1); debian/patches/pthread_underlinkage.patch0000664000000000000000000000243512130067435016024 0ustar Index: curlftpfs-0.9.2/Makefile.am =================================================================== --- curlftpfs-0.9.2.orig/Makefile.am 2008-04-23 06:56:44.000000000 -0400 +++ curlftpfs-0.9.2/Makefile.am 2013-04-06 14:52:48.097007204 -0400 @@ -12,9 +12,9 @@ curlftpfs_SOURCES = ftpfs.c if FUSE_OPT_COMPAT -curlftpfs_LDADD = libcurlftpfs.a compat/libcompat.la +curlftpfs_LDADD = libcurlftpfs.a compat/libcompat.la -lpthread else -curlftpfs_LDADD = libcurlftpfs.a +curlftpfs_LDADD = libcurlftpfs.a -lpthread endif noinst_LIBRARIES = libcurlftpfs.a Index: curlftpfs-0.9.2/Makefile.in =================================================================== --- curlftpfs-0.9.2.orig/Makefile.in 2008-04-23 07:38:00.000000000 -0400 +++ curlftpfs-0.9.2/Makefile.in 2013-04-06 14:53:13.484552239 -0400 @@ -218,8 +218,8 @@ AM_CPPFLAGS = -DFUSE_USE_VERSION=26 AM_LDFLAGS = $(LIBICONV) curlftpfs_SOURCES = ftpfs.c -@FUSE_OPT_COMPAT_FALSE@curlftpfs_LDADD = libcurlftpfs.a -@FUSE_OPT_COMPAT_TRUE@curlftpfs_LDADD = libcurlftpfs.a compat/libcompat.la +@FUSE_OPT_COMPAT_FALSE@curlftpfs_LDADD = libcurlftpfs.a -lpthread +@FUSE_OPT_COMPAT_TRUE@curlftpfs_LDADD = libcurlftpfs.a compat/libcompat.la -lpthread noinst_LIBRARIES = libcurlftpfs.a libcurlftpfs_a_SOURCES = cache.c cache.h \ ftpfs-ls.c ftpfs-ls.h \ debian/patches/free_ftpfs_file-memleak-fix.patch0000664000000000000000000000065111411733501017155 0ustar Fix a memory leak. See Bug #587250. --- a/ftpfs.c 2008-04-30 01:05:47.000000000 +0200 +++ a/ftpfs.c.slesimple 2010-01-01 22:12:10.000000000 +0100 @@ -615,6 +615,8 @@ static void free_ftpfs_file(struct ftpfs sem_destroy(&fh->data_need); sem_destroy(&fh->data_written); sem_destroy(&fh->ready); + if (fh->buf.size) { buf_free(&fh->buf); } + if (fh->stream_buf.size) { buf_free(&fh->stream_buf); } free(fh); } debian/patches/nocache-memleak-fix.patch0000664000000000000000000000351011530654452015441 0ustar Fix a memory leak when cache is disabled. Closes: #614347. diff -ur curlftpfs-0.9.2/cache.c curlftpfs-0.9.2-olexat/cache.c --- curlftpfs-0.9.2/cache.c 2008-04-30 01:03:09.000000000 +0200 +++ curlftpfs-0.9.2-olexat/cache.c 2011-02-04 16:43:05.000000000 +0100 @@ -25,7 +25,7 @@ time_t last_cleaned; }; -static struct cache cache; +struct cache cache; struct node { struct stat stat; diff -ur curlftpfs-0.9.2/ftpfs-ls.c curlftpfs-0.9.2-olexat/ftpfs-ls.c --- curlftpfs-0.9.2/ftpfs-ls.c 2008-04-23 12:55:41.000000000 +0200 +++ curlftpfs-0.9.2-olexat/ftpfs-ls.c 2011-02-07 17:23:37.000000000 +0100 @@ -25,6 +25,13 @@ #include "charset_utils.h" #include "ftpfs-ls.h" +struct cache { + int on; + char incomplete[]; +}; + +extern struct cache cache; + static int parse_dir_unix(const char *line, struct stat *sbuf, char *file, @@ -243,8 +256,10 @@ reallink = g_strdup(link); } int linksize = strlen(reallink); - cache_add_link(full_path, reallink, linksize+1); - DEBUG(1, "cache_add_link: %s %s\n", full_path, reallink); + if (cache.on) { + cache_add_link(full_path, reallink, linksize+1); + DEBUG(1, "cache_add_link: %s %s\n", full_path, reallink); + } if (linkbuf && linklen) { if (linksize > linklen) linksize = linklen - 1; strncpy(linkbuf, reallink, linksize); @@ -257,8 +272,10 @@ DEBUG(1, "filler: %s\n", file); filler(h, file, &stat_buf); } else { - DEBUG(1, "cache_add_attr: %s\n", full_path); - cache_add_attr(full_path, &stat_buf); + if (cache.on) { + DEBUG(1, "cache_add_attr: %s\n", full_path); + cache_add_attr(full_path, &stat_buf); + } } DEBUG(2, "comparing %s %s\n", name, file); debian/patches/series0000664000000000000000000000016412130067336012036 0ustar fix-CURLOPT_INFILESIZE.patch free_ftpfs_file-memleak-fix.patch nocache-memleak-fix.patch pthread_underlinkage.patch debian/rules0000775000000000000000000000031711340215540010244 0ustar #!/usr/bin/make -f # Remember to comment this before tagging for a release. #DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk debian/compat0000664000000000000000000000000211336003065010363 0ustar 5 debian/copyright0000664000000000000000000000153011340220102011103 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: curlftpfs Maintainer: Vincent Bernat Source: http://curlftpfs.sourceforge.net Files: * Copyright: 2006-2007 Robson Braga Araujo 2004 Miklos Szeredi License: GPL-2 On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: compat/fuse_opt.{c,h} Copyright: 2001-2006 Miklos Szeredi License: LGPL-2 On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. Files: debian/* Copyright: 2006-2007 Frank S. Thomas 2010 Vincent Bernat License: GPL-2 debian/source/0000775000000000000000000000000011615056564010501 5ustar debian/source/format0000664000000000000000000000001411340215513011671 0ustar 3.0 (quilt) debian/control0000664000000000000000000000233212130067277010600 0ustar Source: curlftpfs Section: utils Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Vincent Bernat Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), libglib2.0-dev, libcurl4-gnutls-dev, libfuse-dev Build-Conflicts: libcurl4-openssl-dev Standards-Version: 3.9.2 Homepage: http://curlftpfs.sourceforge.net Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/curlftpfs/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/collab-maint/deb-maint/curlftpfs/trunk/ Package: curlftpfs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, fuse [linux-any] | fuse4bsd [kfreebsd-any] Description: filesystem to access FTP hosts based on FUSE and cURL CurlFtpFS is a tool to mount FTP hosts as local directories. It connects to a FTP server and maps its directory structure to the local filesystem. . Based on FUSE (filesystem in userspace) and the cURL library, CurlFtpFS has some features that distinguish it over other FTP filesystems: * support for SSLv3 and TLSv1 * connecting through tunneling HTTP proxies * automatic reconnection if the server times out * conversion of absolute symlinks to point back into the FTP filesystem debian/watch0000664000000000000000000000011011336003065010206 0ustar version=3 http://sf.net/curlftpfs/ curlftpfs-(.*).tar.gz debian uupdate debian/changelog0000664000000000000000000001062612130067317011047 0ustar curlftpfs (0.9.2-5ubuntu1) raring; urgency=low * Added missing pthread lib to link, fixing FTBFS. -- Daniel T Chen Sat, 06 Apr 2013 14:51:47 -0400 curlftpfs (0.9.2-5) unstable; urgency=low * Depends on fuse [linux-any] | fuse4bsd [kfreebsd-any] to allow installation on kfreebsd-*. Closes: #634675. * Bump Standards-Version to 3.9.2. -- Vincent Bernat Sat, 30 Jul 2011 21:17:34 +0200 curlftpfs (0.9.2-4) unstable; urgency=low * Fix another memory leak, thanks to a patch from Tom Olexa. Closes: #614347. * Bump Standards-Version to 3.9.1. -- Vincent Bernat Tue, 22 Feb 2011 07:30:01 +0100 curlftpfs (0.9.2-3) unstable; urgency=low * Fix a memory leak, thanks to a patch from Stéphane Lesimple. Closes: #587250. -- Vincent Bernat Sun, 27 Jun 2010 22:39:30 +0200 curlftpfs (0.9.2-2) unstable; urgency=low * Adopt the package. Thanks to Ding Honghui for his previous work. Closes: #570605. * Acknowledge (delayed) NMU. Closes: #570555. * Bump Standards-Version to 3.8.4. * Switch Vcs-Browser to viewsvn. * Switch to 3.0 (quilt) format. * Update debian/copyright to new DEP5 format. * Fix an incorrect use of CURLOPT_INFILESIZE option causing failures for any file operation on amd64. Closes: #556012, #556013. -- Vincent Bernat Sun, 21 Feb 2010 13:05:13 +0100 curlftpfs (0.9.2-1) unstable; urgency=low * New upstream release. (closes: #480320,#449207,#461455) * Adopting the package (closes: #461806) * debian/control: - Updated Maintainer field. - Update field Standards-Version from 3.7.3 to 3.8.0, no changes were required. - Remove libcurl-ssl-dev from field Build-Depends, because curlftpfs 0.9.2 need libcurl >= 7.17.0. * debian/control.in removed -- Ding Honghui Mon, 04 Aug 2008 22:33:02 +0800 curlftpfs (0.9.1-3) unstable; urgency=low * Orphaning this package, see #461806 for details. * debian/control.in: Set maintainer to Debian QA Group . -- Frank S. Thomas Mon, 21 Jan 2008 01:07:55 +0100 curlftpfs (0.9.1-2) unstable; urgency=low * debian/control: - Added Vcs-{Svn,Browser} fields to the source stanza. - Moved Homepage pseudo field in the long description to the source stanza because this is now a propper debian/control field supported by dpkg. - Bumped Standards-Version from 3.7.2 to 3.7.3, no changes were required. - Changed my maintainer address to fst@debian.org. -- Frank S. Thomas Thu, 06 Dec 2007 21:30:13 +0100 curlftpfs (0.9.1-1) unstable; urgency=low * New upstream release. * Built against curl >= 7.16.1. (closes: #391009) - Updated build dependency from libcurl3-gnutls-dev (>= 7.15.2) to libcurl4-gnutls-dev. Strictly speaking a dependency on libcurl4-gnutls (which is >= 7.16.2-3, because this was the first curl 7.16 version uploaded to unstable) is not necessary, but there are bugs which manifest with curl 7.15.5 and 7.16.0. -- Frank S. Thomas Tue, 8 May 2007 09:39:29 +0200 curlftpfs (0.9-2) unstable; urgency=low * ftpfs-ls.c: Changed type of variable size from "long" to "unsigned long long" in parse_dir_unix(). (closes: #394302) -- Frank S. Thomas Sat, 21 Oct 2006 10:17:33 +0200 curlftpfs (0.9-1) unstable; urgency=low * New upstream release. * debian/copyright: - Added copyright note about the Debian packaging. -- Frank S. Thomas Mon, 2 Oct 2006 19:16:14 +0200 curlftpfs (0.8-2) unstable; urgency=low * Initial upload to Debian. (closes: #376857) * debian/control.in: - Added libcurl3-openssl-dev to Build-Conflicts because CurlFtpFS is licensed under the GPL without an OpenSSL exemption. -- Frank S. Thomas Fri, 7 Jul 2006 11:57:53 +0200 curlftpfs (0.8-1) unstable; urgency=low * New upstream release. * debian/control.in: - Bumped libcurl3-ssl-dev build dependency to 7.15.2. * debian/watch: - Use http://sf.net/curlftpfs/ as alias for the qa.debian.org redirector as documented in uscan's manual page. -- Frank S. Thomas Thu, 1 Jun 2006 13:01:41 +0200 curlftpfs (0.7-1) unstable; urgency=low * Initial release. -- Frank S. Thomas Mon, 8 May 2006 15:48:10 +0200