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_login.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_login.c')
-rw-r--r-- | apps/netutils/ftpc/ftpc_login.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/netutils/ftpc/ftpc_login.c b/apps/netutils/ftpc/ftpc_login.c index 83d2cde05..1d6ff395c 100644 --- a/apps/netutils/ftpc/ftpc_login.c +++ b/apps/netutils/ftpc/ftpc_login.c @@ -105,9 +105,9 @@ int ftpc_login(SESSION handle, FAR struct ftpc_login_s *login) /* Save the login parameter */ - session->uname = ftpc_dequote(login->uname); - session->pwd = ftpc_dequote(login->pwd); - session->initdir = ftpc_dequote(login->rdir); + session->uname = ftpc_dequote(login->uname); + session->pwd = ftpc_dequote(login->pwd); + session->initrdir = ftpc_dequote(login->rdir); /* Is passive mode requested? */ @@ -198,17 +198,17 @@ int ftpc_relogin(FAR struct ftpc_session_s *session) */ FTPC_SET_LOGGEDIN(session); - session->homedir = ftpc_pwd((SESSION)session); - session->curdir = strdup(session->homedir); - session->prevdir = strdup(session->homedir); + session->homerdir = ftpc_rpwd((SESSION)session); + session->currdir = strdup(session->homerdir); + session->prevrdir = strdup(session->homerdir); /* If the user has requested a special start up directory, then change to * that directory now. */ - if (session->initdir) + if (session->initrdir) { - ftpc_chdir((SESSION)session, session->initdir); + ftpc_chdir((SESSION)session, session->initrdir); } return OK; |