• src/sbbs3/ftpsrvr.cpp qwk

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Mon Oct 26 00:09:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/2a88818a30535c344576c10b
    Modified Files:
    src/sbbs3/ftpsrvr.cpp qwkjob.cpp web/root/qwk.ssjs
    Log Message:
    qwkjob: queue a REP left behind by a failed import, don't delete it

    FTP and qwk.ssjs removed the received REP after any failed import that
    left the file in place. Besides an empty packet (which the job leaves
    alone outside data/file/), that also happens when the import fails for a
    reason unrelated to the packet: the job's temp directory can't be created,
    the job instance can't be set up, the server is shutting down mid-import,
    or the move to .bad failed. Deleting the file then lost the user's
    replies, and qwk.ssjs still answered 200, so qnet-http.js would not send
    them again.

    After a failed import, both now remove the file only when it is empty,
    and otherwise queue it under data/file/ exactly as for a busy or
    throttled import, so the event-thread sweep retries it (and keeps it as
    .bad through the normal path if it really is bad). A file the job already imported or moved to .bad is left to the job, as before.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
  • From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Mon Oct 26 00:09:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/c2983055fa0c80bbb5012178
    Modified Files:
    src/sbbs3/ftpsrvr.cpp qwkjob.cpp
    Log Message:
    ftpsrvr: drop an empty REP upload at once; qwkjob: pre-Vista OpenProcess

    - FTP import_rep() removed a 0-byte REP only when the job failed. When the
    user's QWK job lock was busy or the job slots were full, the empty file
    was queued in data/file/ and left for the event thread's sweep to remove
    a minute later. It is now removed whatever the job result.
    - PROCESS_QUERY_LIMITED_INFORMATION, used to tell whether the process that
    owns a temp/qwk/ job directory still runs, exists only for Windows Vista
    and later (_WIN32_WINNT >= 0x0600). Older targets now use
    PROCESS_QUERY_INFORMATION.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>