On 2013-06-08 23:07, Vincent Bernat wrote:
  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.
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)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to