forked from KolibriOS/kolibrios
Fix FTPC logging, change log file path
git-svn-id: svn://kolibrios.org@7201 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a3399b26ae
commit
1b63551705
@ -103,8 +103,6 @@ console: ;//////////////////////////////////////////////////////////////////////
|
|||||||
jnz @b
|
jnz @b
|
||||||
; write to log file
|
; write to log file
|
||||||
mov eax, [esp+36]
|
mov eax, [esp+36]
|
||||||
cmp [logfile_offset], -1
|
|
||||||
je @f
|
|
||||||
call write_to_file
|
call write_to_file
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
|
@ -644,6 +644,11 @@ write_to_file: ;////////////////////////////////////////////////////////////////
|
|||||||
;;------------------------------------------------------------------------------------------------;;
|
;;------------------------------------------------------------------------------------------------;;
|
||||||
;< eax = status of SF 70.3 ;;
|
;< eax = status of SF 70.3 ;;
|
||||||
;;================================================================================================;;
|
;;================================================================================================;;
|
||||||
|
cmp [logfile_offset], -1 ; if offset == -1 => logging disabled
|
||||||
|
jne @f
|
||||||
|
mov eax, 0
|
||||||
|
ret
|
||||||
|
@@:
|
||||||
mov [filestruct2.subfn], 3
|
mov [filestruct2.subfn], 3
|
||||||
m2m [filestruct2.offset], [logfile_offset]
|
m2m [filestruct2.offset], [logfile_offset]
|
||||||
mov [filestruct2.size], ecx
|
mov [filestruct2.size], ecx
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
; 0 = passive / 1 = active
|
; 0 = passive / 1 = active
|
||||||
mode=0
|
mode=0
|
||||||
dir=/tmp0/1/
|
dir=/tmp0/1/
|
||||||
logfile=/usbhd0/1/ftpc.log
|
logfile=/tmp0/1/ftpc.log
|
||||||
[active]
|
[active]
|
||||||
; Local starting port for active connections
|
; Local starting port for active connections
|
||||||
port_start=2000
|
port_start=2000
|
||||||
|
@ -332,8 +332,7 @@ gui: ;//////////////////////////////////////////////////////////////////////////
|
|||||||
stdcall [ted_draw], tedit0
|
stdcall [ted_draw], tedit0
|
||||||
; write to log file
|
; write to log file
|
||||||
mov eax, [esp+36]
|
mov eax, [esp+36]
|
||||||
cmp [logfile_offset], -1 ; disabled logging?
|
sub ecx, 2 ; 0a0d is not included
|
||||||
je @f
|
|
||||||
call write_to_file
|
call write_to_file
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
|
Loading…
Reference in New Issue
Block a user