Enabled Anonymous access to FTP daemon, RETR command now ignores first '/'.

git-svn-id: svn://kolibrios.org@2958 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-08-30 07:21:52 +00:00
parent 85a661d4e9
commit df4d790daf
3 changed files with 9 additions and 4 deletions

View File

@ -8,7 +8,8 @@
[anonymous]
pass= ; leavy empty for none
; leavy pass empty to disable it
pass=
home=/rd/1/
mode=3

View File

@ -652,8 +652,8 @@ cmdPASS:
jnz .incorrect
cmp dword [edi], -1 ; no key, section or file found.. fail!
je .incorrect
;;; cmp byte [edi], 0 ; zero password? ok!
;;; je .ok
cmp byte [edi], 0 ; zero password? ok!
je .ok
add esi, 5
sub ecx, 5
@ -904,6 +904,9 @@ cmdRETR:
dec edi
lea esi, [ebp + thread_data.buffer + 5]
mov ecx, 1024
cmp byte [esi], '/'
jne .loop
inc esi
.loop:
lodsb
cmp al, 0x20

View File

@ -8,7 +8,8 @@
[anonymous]
pass= ; leavy empty for none
; leavy pass empty to disable it
pass=
home=/rd/1/
mode=3