#708313 Listing files broken, if FTP uses human readable size.

Package:
curlftpfs
Source:
curlftpfs
Description:
filesystem to access FTP hosts based on FUSE and cURL
Submitter:
Michal JabLuszko
Date:
2026-11-05 18:15:07 UTC
Severity:
minor
#708313#5
Date:
2013-05-15 02:22:43 UTC
From:
To:
curlftpfs -V
curlftpfs 0.9.2 libcurl/7.26.0 fuse/2.8

Currently after successful mouting fs you can list files, but not all of
them. Looks like it depends form format of reply to LIST command. If remote
FTP enabled 'human readable filesize' by default you will not see files
bigger than 1K - everything with anykind of letter/dot in size field will
be silenty discarded.

Attaching listing with curlftpfs -d -v -o ftpfs_debug=10, You can find that
the files are listed (by ftpfs.c:241-242) - 12_abc.png, plik.txt and
directory profile, however they are "gone" while browsing fs and even not
listed withing ftpfs_getdir /ftpfs-ls.c:266 filler. Removing some extra
content from file 'plik.txt' and reducing size to less than 1K will show
file correctly.

* DO phase is complete
* FTP 0x86a30b4 state change from STOP to LIST_TYPE
* FTP 0x86a30b4 state change from LIST_TYPE to LIST
< 150 Opening ASCII mode data connection for file list
* Maxdownload = -1
* FTP 0x86a30b4 state change from LIST to STOP
* DO-MORE phase ends with 0
* additional stuff not fine transfer.c:1037: 0 0
 1368583937 ftpfs.c:241 read_data: 651
  1368583937 ftpfs.c:242 drwxr-xr-x   7 ftp      ftp           280 May 15
03:19 .
drwxr-xr-x  16 ftp      ftp           760 May 10 22:10 ..
-rw-r--r--   1 ftp      ftp         61.0k May 15 02:53 12_abc.png
drwxrwxrwx   2 ftp      ftp           848 May 14 15:14 bgimages
-rw-r--r--   1 ftp      ftp             0 May  9 23:22 index.html
drwxrwxrwx   2 ftp      ftp           376 Apr  1 00:34 monthly_03_2013
drwxrwxrwx   2 ftp      ftp           128 Apr  7 16:41 monthly_04_2013
drwxrwxrwx   2 ftp      ftp           904 May 14 21:59 monthly_05_2013
-rw-r--r--   1 ftp      ftp          1.1k May 15 03:19 plik.txt
drwxr-xr-x   2 ftp      ftp         10.4k May 14 21:43 profile

* nread <= 0, server closed connection, bailing
* Remembering we are in dir "domains/xx-xxx.com/public_html/uploads/"
< 226 Transfer complete
* Connection #0 to host (nil) left intact
1368583937 ftpfs-ls.c:266 filler: .
 1368583937 ftpfs-ls.c:275 comparing (null) .
1368583937 ftpfs-ls.c:266 filler: ..
 1368583937 ftpfs-ls.c:275 comparing (null) ..
1368583937 ftpfs-ls.c:266 filler: bgimages
 1368583937 ftpfs-ls.c:275 comparing (null) bgimages
1368583937 ftpfs-ls.c:266 filler: index.html
 1368583937 ftpfs-ls.c:275 comparing (null) index.html
1368583937 ftpfs-ls.c:266 filler: monthly_03_2013
 1368583937 ftpfs-ls.c:275 comparing (null) monthly_03_2013
1368583937 ftpfs-ls.c:266 filler: monthly_04_2013
 1368583937 ftpfs-ls.c:275 comparing (null) monthly_04_2013
1368583937 ftpfs-ls.c:266 filler: monthly_05_2013
 1368583937 ftpfs-ls.c:275 comparing (null) monthly_05_2013
 1368583937 ftpfs.c:213 ftpfs_getdir successful

Here 'plik.txt' is 1021.0 - still not shown;
* FTP 0x81660b4 state change from LIST to STOP
* DO-MORE phase ends with 0
* additional stuff not fine transfer.c:1037: 0 0
 1368584209 ftpfs.c:241 read_data: 650
  1368584209 ftpfs.c:242 drwxr-xr-x   7 ftp      ftp           280 May 15
03:19 .
drwxr-xr-x  16 ftp      ftp           760 May 10 22:10 ..
-rw-r--r--   1 ftp      ftp         61.0k May 15 02:53 12_abc.png
drwxrwxrwx   2 ftp      ftp           848 May 14 15:14 bgimages
-rw-r--r--   1 ftp      ftp             0 May  9 23:22 index.html
drwxrwxrwx   2 ftp      ftp           376 Apr  1 00:34 monthly_03_2013
drwxrwxrwx   2 ftp      ftp           128 Apr  7 16:41 monthly_04_2013
drwxrwxrwx   2 ftp      ftp           904 May 14 21:59 monthly_05_2013
-rw-r--r--   1 ftp      ftp       1021.0 May 15 04:16 plik.txt
drwxr-xr-x   2 ftp      ftp         10.4k May 14 21:43 profile

* nread <= 0, server closed connection, bailing
* Remembering we are in dir "domains/xx-xxx.com/public_html/uploads/"
< 226 Transfer complete
* Connection #0 to host (nil) left intact
1368584209 ftpfs-ls.c:266 filler: .
 1368584209 ftpfs-ls.c:275 comparing (null) .
1368584209 ftpfs-ls.c:266 filler: ..
 1368584209 ftpfs-ls.c:275 comparing (null) ..
1368584209 ftpfs-ls.c:266 filler: bgimages
 1368584209 ftpfs-ls.c:275 comparing (null) bgimages
1368584209 ftpfs-ls.c:266 filler: index.html
 1368584209 ftpfs-ls.c:275 comparing (null) index.html
1368584209 ftpfs-ls.c:266 filler: monthly_03_2013
 1368584209 ftpfs-ls.c:275 comparing (null) monthly_03_2013
1368584209 ftpfs-ls.c:266 filler: monthly_04_2013
 1368584209 ftpfs-ls.c:275 comparing (null) monthly_04_2013
1368584209 ftpfs-ls.c:266 filler: monthly_05_2013
 1368584209 ftpfs-ls.c:275 comparing (null) monthly_05_2013
 1368584209 ftpfs.c:213 ftpfs_getdir successful

Bringing it down to 990 (no dot or K) make file visible within filesystem
* DO-MORE phase ends with 0
* additional stuff not fine transfer.c:1037: 0 0
 1368584358 ftpfs.c:241 read_data: 651
  1368584358 ftpfs.c:242 drwxr-xr-x   7 ftp      ftp           280 May 15
03:19 .
drwxr-xr-x  16 ftp      ftp           760 May 10 22:10 ..
-rw-r--r--   1 ftp      ftp         61.0k May 15 02:53 12_abc.png
drwxrwxrwx   2 ftp      ftp           848 May 14 15:14 bgimages
-rw-r--r--   1 ftp      ftp             0 May  9 23:22 index.html
drwxrwxrwx   2 ftp      ftp           376 Apr  1 00:34 monthly_03_2013
drwxrwxrwx   2 ftp      ftp           128 Apr  7 16:41 monthly_04_2013
drwxrwxrwx   2 ftp      ftp           904 May 14 21:59 monthly_05_2013
-rw-r--r--   1 ftp      ftp           990 May 15 04:18 plik.txt
drwxr-xr-x   2 ftp      ftp         10.4k May 14 21:43 profile

* nread <= 0, server closed connection, bailing
* Remembering we are in dir "domains/xx-xxx.com/public_html/uploads/"
< 226 Transfer complete
* Connection #0 to host (nil) left intact
1368584358 ftpfs-ls.c:266 filler: .
 1368584358 ftpfs-ls.c:275 comparing (null) .
1368584358 ftpfs-ls.c:266 filler: ..
 1368584358 ftpfs-ls.c:275 comparing (null) ..
1368584358 ftpfs-ls.c:266 filler: bgimages
 1368584358 ftpfs-ls.c:275 comparing (null) bgimages
1368584358 ftpfs-ls.c:266 filler: index.html
 1368584358 ftpfs-ls.c:275 comparing (null) index.html
1368584358 ftpfs-ls.c:266 filler: monthly_03_2013
 1368584358 ftpfs-ls.c:275 comparing (null) monthly_03_2013
1368584358 ftpfs-ls.c:266 filler: monthly_04_2013
 1368584358 ftpfs-ls.c:275 comparing (null) monthly_04_2013
1368584358 ftpfs-ls.c:266 filler: monthly_05_2013
 1368584358 ftpfs-ls.c:275 comparing (null) monthly_05_2013
1368584358 ftpfs-ls.c:266 filler: plik.txt
 1368584358 ftpfs-ls.c:275 comparing (null) plik.txt
 1368584358 ftpfs.c:213 ftpfs_getdir successful


The remote FTP headers:
Response: 220 ProFTPD 1.3.3g Server ready.

#708313#10
Date:
2013-06-08 21:07:12 UTC
From:
To:
 ❦ 15 mai 2013 04:22 CEST, Michal JabLuszko <spamm@jabluszko.org> :

Hi!

I have looked at some other parsers for FTP listening and didn't find
one that was able to handle those human readable filesize. This should
not be that hard to add but it seems to be a corner case.

curlftpfs has no more upstream and I don't have time to add such a
feature. I leave the bug as is in case someone want to propose a patch
but don't expect anything soon.

#708313#17
Date:
2013-06-08 21:42:46 UTC
From:
To:
ftpfs-ls.c
#include "math.h" (and change Makefile also to include it)
add new char size_string[33];
Change "%llu" to "%32s" in sscanf and put it into size_string rather
than size.
copy-paste from_human_readable_byte_count from
http://agentzlerich.blogspot.com/2011/01/converting-to-and-from-human-readable.html

use that function to parse human readable size_string to bytes and put
it into size var.

No idea how 'proper' is that (I am not programmer), however it works ;)
Not attaching any kind of patch file due (reason above :D)

#708313#22
Date:
2026-11-05 18:14:10 UTC
From:
To:
Dear submitter,

as the package curlftpfs has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1152674

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)