https://gitlab.synchro.net/main/sbbs/-/commit/faf0950ba4089e13b3e610af
Modified Files:
src/sbbs3/nopen.c nopen.h
Log Message:
Rename fcopy() to nfcopy()
The name said nothing about what distinguishes it from xpdev's
CopyFile(), which the JavaScript file_copy() and most of the tree use.
This one opens both files DENYNONE through nopen(), so a copy never
blocks another node from writing to either file, and it retries a locked
open rather than failing. The n prefix is how the rest of this file
spells that already: nopen(), fnopen().
The distinction is worth making obvious now that both routines preserve
the source file's permissions (GitLab #1202) and that difference no
longer tells them apart.
nfcopy() is exported from libsbbs, so any out-of-tree caller has to
follow; no compatibility alias is left behind. In-tree there is one
caller, backup().
Co-Authored-By: Claude Opus 5 (1M context) <
[email protected]>
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net