--- flist.c 10 Jul 2006 04:25:53 -0000 1.351 +++ flist.c 26 Aug 2006 16:00:16 -0000 @@ -1185,6 +1185,8 @@ struct file_list *send_file_list(int f, } else break; } + if (len == 1 && fn[0] == '/') + fn[len++] = '.'; fn[len] = '\0'; /* Reject a ".." dir in the active part of the path. */ for (p = fn; (p = strstr(p, "..")) != NULL; p += 2) {