Commits (1)
...@@ -3064,7 +3064,7 @@ static void ctrl_thread(void* arg) ...@@ -3064,7 +3064,7 @@ static void ctrl_thread(void* arg)
else { else {
if(!direxist(p)) { if(!direxist(p)) {
sockprintf(sock,sess,"550 Directory does not exist."); sockprintf(sock,sess,"550 Directory does not exist.");
lprintf(LOG_WARNING,"%04d <%s> !attempted to mount invalid directory: %s" lprintf(LOG_WARNING,"%04d <%s> !attempted to mount invalid directory: '%s'"
,sock, user.alias, p); ,sock, user.alias, p);
continue; continue;
} }
...@@ -3277,7 +3277,7 @@ static void ctrl_thread(void* arg) ...@@ -3277,7 +3277,7 @@ static void ctrl_thread(void* arg)
if(!direxist(path)) { if(!direxist(path)) {
sockprintf(sock,sess,"550 Directory does not exist (%s).",path); sockprintf(sock,sess,"550 Directory does not exist (%s).",path);
lprintf(LOG_WARNING,"%04d <%s> !attempted to change to an invalid directory: %s" lprintf(LOG_WARNING,"%04d <%s> !attempted to change to an invalid directory: '%s'"
,sock, user.alias, path); ,sock, user.alias, path);
} else { } else {
SAFECOPY(local_dir,path); SAFECOPY(local_dir,path);
...@@ -4485,8 +4485,8 @@ static void ctrl_thread(void* arg) ...@@ -4485,8 +4485,8 @@ static void ctrl_thread(void* arg)
sprintf(str,"%s.rep",scfg.sys_id); sprintf(str,"%s.rep",scfg.sys_id);
if(!(startup->options&FTP_OPT_ALLOW_QWK) if(!(startup->options&FTP_OPT_ALLOW_QWK)
|| stricmp(p,str)) { || stricmp(p,str)) {
lprintf(LOG_WARNING,"%04d <%s> !attempted to upload to invalid directory" lprintf(LOG_WARNING,"%04d <%s> !attempted to upload to invalid directory: '%s'"
,sock,user.alias); ,sock, user.alias, p);
sockprintf(sock,sess,"553 Invalid directory."); sockprintf(sock,sess,"553 Invalid directory.");
continue; continue;
} }
...@@ -4537,7 +4537,7 @@ static void ctrl_thread(void* arg) ...@@ -4537,7 +4537,7 @@ static void ctrl_thread(void* arg)
|| (startup->options&FTP_OPT_INDEX_FILE || (startup->options&FTP_OPT_INDEX_FILE
&& !stricmp(p,startup->index_file_name)) && !stricmp(p,startup->index_file_name))
) { ) {
lprintf(LOG_WARNING,"%04d <%s> attempted to overwrite existing file: %s" lprintf(LOG_WARNING,"%04d <%s> attempted to overwrite existing file: '%s'"
,sock,user.alias,fname); ,sock,user.alias,fname);
sockprintf(sock,sess,"553 File already exists."); sockprintf(sock,sess,"553 File already exists.");
continue; continue;
...@@ -4614,7 +4614,7 @@ static void ctrl_thread(void* arg) ...@@ -4614,7 +4614,7 @@ static void ctrl_thread(void* arg)
p+=strlen(LOCAL_FSYS_DIR); p+=strlen(LOCAL_FSYS_DIR);
if(!direxist(p)) { if(!direxist(p)) {
sockprintf(sock,sess,"550 Directory does not exist."); sockprintf(sock,sess,"550 Directory does not exist.");
lprintf(LOG_WARNING,"%04d <%s> attempted to mount invalid directory: %s" lprintf(LOG_WARNING,"%04d <%s> attempted to mount invalid directory: '%s'"
,sock, user.alias, p); ,sock, user.alias, p);
continue; continue;
} }
......