From 238b6b89ea489668b7c7c872e99354575318e400 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sun, 3 Jan 2010 18:49:42 +0000 Subject: [PATCH] fix ftp file list problem. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@277 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- net/apps/ftpd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/apps/ftpd.c b/net/apps/ftpd.c index 180b61138..658b2acf1 100644 --- a/net/apps/ftpd.c +++ b/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);