Package: curlftpfs
Version: 0.9-1
Severity: grave
Tags: patch
Justification: causes non-serious data loss

Trying to use curlftpfs for mounting ftp server i found
that it doesnot correctly work if length of file bigger then 2Gb.
I just replaced long for size of file with long long.
Patch attached.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages curlftpfs depends on:
ii  fuse-utils                    2.5.3-4.1  Filesystem in USErspace (utilities
ii  libc6                         2.5-0exp1  GNU C Library: Shared libraries
ii  libcomerr2                    1.37-2     common error description library
ii  libcurl3-gnutls               7.15.5-1   Multi-protocol file transfer libra
ii  libfuse2                      2.5.3-4.1  Filesystem in USErspace library
ii  libgcrypt11                   1.2.2-1    LGPL Crypto library - runtime libr
ii  libglib2.0-0                  2.12.4-1   The GLib library of C routines
ii  libgnutls13                   1.4.1-1    the GNU TLS library - runtime libr
ii  libgpg-error0                 1.4-1      library for common error values an
ii  libidn11                      0.5.18-1   GNU libidn library, implementation
ii  libkrb53                      1.4.3-3    MIT Kerberos runtime libraries
ii  libtasn1-3                    0.3.5-2    Manage ASN.1 structures (runtime)
ii  zlib1g                        1:1.2.3-11 compression library - runtime

curlftpfs recommends no packages.

-- no debconf information
--- ./curlftpfs-0.9/ftpfs-ls.c	2006-10-02 15:32:42.000000000 +0200
+++ ./curlftpfs-0.9_/ftpfs-ls.c	2006-10-20 16:57:49.000000000 +0200
@@ -27,7 +27,7 @@
   long nlink = 1;
   char user[33];
   char group[33];
-  long size;
+  long long size;
   char month[4];
   char day[3];
   char year[6];
@@ -46,7 +46,7 @@
                "%lu"  SPACES
                "%32s" SPACES
                "%32s" SPACES
-               "%lu"  SPACES
+               "%llu"  SPACES
                "%3s"  SPACES
                "%2s"  SPACES
                "%5s"  SPACES
@@ -57,7 +57,7 @@
                  "%11s" SPACES
                  "%32s" SPACES
                  "%32s" SPACES
-                 "%lu"  SPACES
+                 "%llu"  SPACES
                  "%3s"  SPACES
                  "%2s"  SPACES
                  "%5s"  SPACES

Reply via email to