Commit 3ead8a4d authored by Rob Swindell's avatar Rob Swindell

Don't delete pack####.now upon FTP-logoff

When a user logins to the FTP server concurrently, this creates a
race condition with an/the other FTP session that may be creating/
downloading a QWK packet. On Vertrauen, this results in the
occasional error removing the file since it was removed unexpectedly:
!ERROR 2 (No such file or directory) in main.cpp line 2747 (event_thread) removing "/sbbs/data/pack1111.now" access=0
parent d961570d
Pipeline #1135 passed with stage
in 17 minutes and 18 seconds
......@@ -4971,9 +4971,6 @@ static void ctrl_thread(void* arg)
/* Update User Statistics */
if(!logoutuserdat(&scfg, &user, time(NULL), logintime))
lprintf(LOG_ERR,"%04d <%s> !ERROR in logoutuserdat", sock, user.alias);
/* Remove QWK-pack semaphore file (if left behind) */
sprintf(str,"%spack%04u.now",scfg.data_dir,user.number);
ftp_remove(sock, __LINE__, str, user.alias);
lprintf(LOG_INFO,"%04d <%s> logged off", sock, user.alias);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment