After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 112463 - Use D. J. Bernstein's FTP LIST parser
Use D. J. Bernstein's FTP LIST parser
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
cvs (head)
Other All
: Normal enhancement
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2003-05-07 03:32 UTC by jl1192
Modified: 2006-03-19 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jl1192 2003-05-07 03:32:07 UTC
I came across this page in random surfing, and thought it might be useful
for gnome-vfs, having had some experience working with the ftp module's
LIST parsing algorithms.

http://cr.yp.to/ftpparse.html

It's available as a C source file and header, so it can easily be compiled
and linked with the ftp module.

It's not LGPL, so I don't know what legal issues are involved. djb only
says at the bottom of the page:

"Commercial use of ftpparse is fine, as long as you let me know what
programs you're using it in."
Comment 1 Christophe Fergeau 2003-05-07 07:39:44 UTC
The first question that comes to mind is: « what's wrong with the current parser ? Are there bugs in it, sites that it doesn't handle properly ? »
Comment 2 jl1192 2003-05-07 17:16:16 UTC
The current parser handles Unix, Windows/MSDOS, and Netware. Although
this covers the vast majority of ftp servers, it doesn't cover as many
as Bernstein's parser claims to cover.

However, you raise a good point. The current parser is working for
most ftp servers. As long as people are happy with it, there is not a
good reason to replace it.

FYI: A few related bugs...

  Bug 41182 - some cases not handled by ls parser
  Bug 86280, Bug 86862 - both deal with Microsoft FTP servers
Comment 3 Ian McKellar 2003-05-07 18:41:21 UTC
Well, this could be nice. I guess we'll need to see if DJB would be
happy for us to put it in an LGPL library. His license doesn't seem to
quite be LGPL compatible though. I'll email him and see what he says.
Comment 4 Allison Karlitskaya (desrt) 2004-08-15 03:48:54 UTC
Ian: *ping*

Did you ever get a reply?
Comment 5 Christian Kellner 2005-02-14 13:59:57 UTC
I looked at the code today and it seems to use tons of global vars. This is a no
go since it's not threadsafe at all! We would at least need to rewrite great
parts of it! I think it's better to fix the current parser! 
Comment 6 Ben Hutchings 2005-04-14 12:01:37 UTC
Also see bug 163671 - and consider that there may be other overflow cases in
gnome_vfs_parse_ls_lga, whereas this is very unlikely in djb's code.
Comment 7 Christian Kellner 2005-04-14 16:38:58 UTC
Well there still is the license problem and the tons of global vars. If someone
volunteers to ask him again - get proper response, and attach a threadsafe patch
here, I will think about it ;) Until then this is not going to happen anytime soon!
Comment 8 Christian Neumair 2006-03-19 17:29:21 UTC
We have actually fixed most of the ls parsing issues, all associated bug reports are closed. Please open bug reports as you encounter more of them. This is just not going to happen for license and coding style reasons.