Fix a bug in the FAT statfs() implementation

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4375 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-02-07 00:29:06 +00:00
parent ed6abe6d2e
commit f12225b4f7
2 changed files with 10 additions and 14 deletions

View File

@ -2356,7 +2356,7 @@ static int ftpd_command_user(FAR struct ftpd_session_s *session)
{
int ret;
/* Clear session status (USER, REST, RNFR) */
/* Clear session status */
session->flags = 0;
session->restartpos = 0;

View File

@ -50,23 +50,19 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Networking definitions ***************************************************/
#define FTPD_PROTOCOL_TCP (6) /* TCP protocol number */
/* FPTD Definitions *********************************************************/
#define FTPD_SESSIONFLAG_USER (1 << 0)
#define FTPD_SESSIONFLAG_RESTARTPOS (1 << 1)
#define FTPD_SESSIONFLAG_RENAMEFROM (1 << 2)
#define FTPD_SESSIONFLAG_USER (1 << 0) /* Session has a user */
#define FTPD_SESSIONFLAG_RESTARTPOS (1 << 1) /* Session has a restart position */
#define FTPD_SESSIONFLAG_RENAMEFROM (1 << 2) /* Session has a rename from string */
#define FTPD_LISTOPTION_A (1 << 0)
#define FTPD_LISTOPTION_L (1 << 1)
#define FTPD_LISTOPTION_F (1 << 2)
#define FTPD_LISTOPTION_R (1 << 3)
#define FTPD_LISTOPTION_UNKNOWN (1 << 7)
#define FTPD_LISTOPTION_A (1 << 0) /* List option 'A' */
#define FTPD_LISTOPTION_L (1 << 1) /* List option 'L' */
#define FTPD_LISTOPTION_F (1 << 2) /* List option 'F' */
#define FTPD_LISTOPTION_R (1 << 3) /* List option 'R' */
#define FTPD_LISTOPTION_UNKNOWN (1 << 7) /* Unknown list option */
#define FTPD_CMDFLAG_LOGIN (1 << 0)
#define FTPD_CMDFLAG_LOGIN (1 << 0) /* Command requires login */
/****************************************************************************
* Public Types