[Zope3-dev] Issue 363

jürgen Kartnaller j.kartnaller at cable.vol.at
Sun Apr 3 07:17:20 EDT 2005


I did a check for issue 363 :

A GetoptError exception occures because of the uppercase L in the option 
list.

zope ftp only accepts lower case options l,a and d.

As I can see the implemented LIST command only uses -d option.
Am I right ?

For now this issue can be fixed like this in zope/server/ftp/server.py :

--- server.py   (revision 29853)
+++ server.py   (working copy)
@@ -206,7 +206,7 @@
          opts = ()
          if args.strip().startswith('-'):
              try:
-                opts, args = getopt(args.split(), 'lad')
+                opts, args = getopt(args.split(), 'Llad')
              except GetoptError:
                  self.reply('ERR_ARGS')
                  return

Someone with checkin rights can please do the cahnge.

Jürgen



More information about the Zope3-dev mailing list