add support to parse parameters

git-svn-id: svn://kolibrios.org@6394 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
nisargshah95
2016-04-12 12:24:28 +00:00
parent 7ea16e0e19
commit b4322cddd9
3 changed files with 170 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ server_parser:
je welcome
cmp dword[buf_cmd], "530 " ; password incorrect
mov [use_params], 0
je welcome
cmp dword[buf_cmd], "550 "
@@ -58,8 +59,20 @@ pass:
login_ok:
mov [status], STATUS_LOGGED_IN
jmp wait_for_usercommand
cmp [use_params], 0
je wait_for_usercommand
cmp [param_path+4], 0
je wait_for_usercommand
; copy path to buf_cmd and execute CWD
mov edi, buf_cmd
mov esi, param_path
@@:
lodsb
stosb
cmp byte[esi-1], 0
jne @b
jmp cmd_cwd
pasv_ok: