Ticket #680: ftp.patch

File ftp.patch, 503 bytes (added by frozenfire, at 2009-04-10T22:34:34Z)

The patch, in diff/patch format

Line 
1*** src/allmydata/frontends/ftpd.py     Fri Apr 10 22:08:44 2009
2--- src/allmydata/frontends/ftpd.py     Fri Apr 10 22:08:22 2009
3*************** class Handler:
4*** 196,201 ****
5--- 196,203 ----
6                      value = 0
7                  else:
8                      value = childnode.get_size()
9+                     if not isinstance(value, (int, long)):
10+                         value = 0
11              elif key == "directory":
12                  value = isdir
13              elif key == "permissions":