Roxen.git
/
server
/
plugins
/
protocols
/
ftp.pike
version
»
Context lines:
10
20
40
80
file
none
3
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.
97
2004/05/20 23:
31
:
10
_cvs_stephen Exp $
+
* $Id: ftp.pike,v 2.
98
2004/05/20 23:
32
:
03
_cvs_stephen Exp $
* * Henrik Grubbström <grubba@roxen.com> */ /* * TODO: * * How much is supposed to be logged? */
Roxen.git/server/plugins/protocols/ftp.pike:3359:
return; } args = fix_path(args); RequestID session = RequestID2(master_session); session->data = 0; session->misc->len = 0; session->method = "DELETE";
+
session->not_query = args;
if (open_file(args, session, "DELE")) { send(250, ({ sprintf("%s deleted.", args) })); session->conf->log(([ "error":200 ]), session); } destruct(session); } void ftp_RMD(string args) {
Roxen.git/server/plugins/protocols/ftp.pike:3380:
return; } args = fix_path(args); RequestID session = RequestID2(master_session); session->data = 0; session->misc->len = 0; session->method = "DELETE";
+
session->not_query = args;
array|object st = stat_file(args, session); if (!st) { send_error("RMD", args, session->file, session); destruct(session); return; } else if (st[1] != -2) { if (st[1] == -3) { send(504, ({ sprintf("%s is a module mountpoint.", args) }));
Roxen.git/server/plugins/protocols/ftp.pike:3424:
return; } args = fix_path(args); RequestID session = RequestID2(master_session); session->method = "MKDIR"; session->data = 0; session->misc->len = 0;
+
session->not_query = args;
if (open_file(args, session, "MKD")) { send(257, ({ sprintf("\"%s\" created.", args) })); session->conf->log(([ "error":200 ]), session); } destruct(session); } void ftp_XMKD(string args) {