Browse Source

fix ftp file list problem.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@277 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
238b6b89ea
1 changed files with 5 additions and 0 deletions
  1. 5 0
      net/apps/ftpd.c

+ 5 - 0
net/apps/ftpd.c

@@ -260,6 +260,11 @@ int do_list(char* directory, int sockfd)
 
 			send(sockfd, line_buffer, line_length, 0);
 		}
+		else
+		{
+			rt_kprintf("Get directory entry error\n");
+			break;
+		}
 	}
 
 	closedir(dirp);