diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-03 20:27:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-06-03 20:27:30 +0000 |
commit | 92fd8f5221ca528c2def13897c712d558adf1675 (patch) | |
tree | 0c9d63fe3408864b46597a4eb1c20eace2ffc783 /apps/netutils/ftpc/ftpc_idle.c | |
parent | 90e92459a9c7a33fb8a005f87ec3f512b760c487 (diff) | |
download | nuttx-92fd8f5221ca528c2def13897c712d558adf1675.tar.gz nuttx-92fd8f5221ca528c2def13897c712d558adf1675.tar.bz2 nuttx-92fd8f5221ca528c2def13897c712d558adf1675.zip |
More FTP bugfixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3665 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/netutils/ftpc/ftpc_idle.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_idle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/netutils/ftpc/ftpc_idle.c b/apps/netutils/ftpc/ftpc_idle.c index 2d049f8b4..95a94d233 100644 --- a/apps/netutils/ftpc/ftpc_idle.c +++ b/apps/netutils/ftpc/ftpc_idle.c @@ -91,7 +91,7 @@ int ftpc_idle(SESSION handle, unsigned int idletime) if (!FTPC_HAS_IDLE(session)) { - ndbg("Server doesn't support SITE IDLE\n"); + ndbg("Server does not support SITE IDLE\n"); return ERROR; } @@ -108,12 +108,13 @@ int ftpc_idle(SESSION handle, unsigned int idletime) ret = ftpc_cmd(session, "SITE IDLE"); } - /* Check for "502 Command not implemented" */ + /* Check for "502 Command not implemented" or 500 "Unknown SITE command" */ - if (session->code == 502) + if (session->code == 500 || session->code == 502) { /* Server does not support SITE IDLE */ + ndbg("Server does not support SITE IDLE\n"); FTPC_CLR_IDLE(session); } |