* spaces in files are converted to _ (underscore) in logfile (as wuftpd does)

This commit is contained in:
interp 2002-04-21 17:52:46 +00:00
parent 241e5c7a2a
commit a7e16bed27
1 changed files with 4 additions and 2 deletions

View File

@ -135,7 +135,9 @@
(- (current-seconds) start-transfer-seconds) ; transfer time in secs
(socket-address->string (socket-remote-address (session-data-socket)) #f) ; remote host name
(file-info:size info) ; file size in bytes
full-path ; name of file
(string-map (lambda (c)
(if (eq? c #\space) #\_ c))
full-path) ; name of file (spaces replaced by "_")
(case (session-type)
((ascii) "a")
((image) "b")
@ -1214,7 +1216,7 @@
; Version
(define *ftpd-version* "$Revision: 1.34 $")
(define *ftpd-version* "$Revision: 1.35 $")
(define (copy-port->port-binary input-port output-port)
(let ((buffer (make-string *window-size*)))