-
- Downloads
Only allow one FTP session per QWKnet user account
Vertrauen's FTP server gets abused by QWKnet logins sometimes and handling the race conditions around QWK packet creation attempts is silly - there's no legit reason why a QWKnet account needs to be logged-in multiple times concurrently to the hub's FTP server, so reject the subsequent logins even when they're on different hosts (as is the case with Vertrauen). As part of this change: - fmutex() now takes an new time_t* argument to (optionally) store the time of the mutex file for helping logging (locked since when?). - time_as_hhmm() created to format a string as either HH:MM or HH:MM[a|p] (depending on system configuration for 12 or 24 hour time formatting). - renamed the old hhmmtostr ()to tm_as_hhmm() (since it takes a struct tm arg) and have it return a non-padded string (useful in more situations without requiring truncation) when the sysop prefers 24-hour time.
Showing
- src/sbbs3/answer.cpp 2 additions, 2 deletionssrc/sbbs3/answer.cpp
- src/sbbs3/date_str.c 17 additions, 3 deletionssrc/sbbs3/date_str.c
- src/sbbs3/date_str.h 3 additions, 2 deletionssrc/sbbs3/date_str.h
- src/sbbs3/ftpsrvr.c 15 additions, 1 deletionsrc/sbbs3/ftpsrvr.c
- src/sbbs3/js_global.c 1 addition, 1 deletionsrc/sbbs3/js_global.c
- src/sbbs3/logout.cpp 3 additions, 7 deletionssrc/sbbs3/logout.cpp
- src/sbbs3/main.cpp 6 additions, 4 deletionssrc/sbbs3/main.cpp
- src/sbbs3/nopen.c 9 additions, 4 deletionssrc/sbbs3/nopen.c
- src/sbbs3/nopen.h 1 addition, 1 deletionsrc/sbbs3/nopen.h
- src/sbbs3/sbbsecho.c 7 additions, 4 deletionssrc/sbbs3/sbbsecho.c
Loading
Please register or sign in to comment