Roxen.git / server / plugins / protocols / ftp.pike

version» Context lines:

Roxen.git/server/plugins/protocols/ftp.pike:1:   // This is a roxen protocol module.   // Copyright © 1997 - 2001, Roxen IS.      /*    * FTP protocol mk 2    * -  * $Id: ftp.pike,v 2.100 2004/05/31 23:48:20 _cvs_stephen Exp $ +  * $Id: ftp.pike,v 2.101 2004/06/04 08:29:30 _cvs_stephen Exp $    *    * Henrik Grubbström <grubba@roxen.com>    */      /*    * TODO:    *    * How much is supposed to be logged?    */   
Roxen.git/server/plugins/protocols/ftp.pike:555:    && code>199) {    if(code < 300)    code = 226;    else    code = 550;    response_code = code;    response = ({msg});    }    gotdata = gotdata[n+1..];    } -  return strlen(data); +  return sizeof(data);    }       void done(mapping result)    {    if (result->error < 300) {    response_code = 226;    } else {    response_code = 550;    }   
Roxen.git/server/plugins/protocols/ftp.pike:1951:    }       static private void connected_to_send(object fd, string ignored,    mapping file, object session)    {    DWRITE("FTP: connected_to_send(X, %O, %O, X)\n", ignored, file);       touch_me();       if(!file->len) -  file->len = file->data?(stringp(file->data)?strlen(file->data):0):0; +  file->len = file->data?(stringp(file->data)?sizeof(file->data):0):0;       if (!file->mode) {    file->mode = mode;    }       if(fd)    {    if (file->len) {    send(150, ({ sprintf("Opening %s data connection for %s (%d bytes).",    modes[file->mode], file->full_path, file->len) }));
Roxen.git/server/plugins/protocols/ftp.pike:2027:       if( throttler || conf->throttler )    pipe->set_throttler( throttler || conf->throttler );       pipe->set_done_callback(    lambda( Shuffler.Shuffle r, int reason ) {    send_done_callback( fd, session, r->sent_data() );    } );    master_session->file = session->file = file;    if(stringp(file->data)) { -  pipe->add_source(file->data,0,strlen(file->data)); +  pipe->add_source(file->data,0,sizeof(file->data));    }    if(file->file) {    int off;    file->file->set_blocking();    catch( off = file->tell() );    pipe->add_source( file->file, max(off,0), (file->len||-1) );    }    pipe->start();    curr_pipe = pipe;    }