--- sitecopy-0.10.15/src/ftp.c.orig	Sat Jan  6 20:14:38 2001
+++ sitecopy-0.10.15/src/ftp.c	Thu Mar 15 02:56:57 2001
@@ -1001,7 +1001,7 @@
 static mode_t ftp_decode_perms(const char *perms) {
     mode_t ret = 0;
     int n;
-    for (n = 0; n < 8; n++) {
+    for (n = 0; n < 9; n++) {
 	if (perms[1+n] != '-') ret |= 1<<(8-n);
     }
     DEBUG(DEBUG_FTP, "Decoded [%s] is %o\n", perms, ret);
