From a16a0bf1bd223ca6038a3fa6326a510fbbc4c8fa Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 13 Jun 2003 23:15:21 +0000 Subject: [PATCH] Added SITE EXEC command, available for sysop logins only. --- src/sbbs3/ftpsrvr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sbbs3/ftpsrvr.c b/src/sbbs3/ftpsrvr.c index d377bda74e..8f97a1e353 100644 --- a/src/sbbs3/ftpsrvr.c +++ b/src/sbbs3/ftpsrvr.c @@ -2781,6 +2781,12 @@ static void ctrl_thread(void* arg) sockprintf(sock,"211 ALL servers/nodes will recycle when not in-use"); continue; } + if(!strnicmp(cmd,"SITE EXEC ",10) && sysop) { + p=cmd+10; + while(*p && *p<=' ') p++; + sockprintf(sock,"211 system(%s) returned %d",p,system(p)); + continue; + } #ifdef SOCKET_DEBUG_CTRL -- GitLab