[PATCH] add sftp-server option to force temp files
Nico Kadel-Garcia
nkadel at gmail.com
Mon Feb 21 05:30:57 AEDT 2022
On Sun, Feb 20, 2022 at 11:08 AM Nathan Wagner <nw at hydaspes.if.org> wrote:
>
> The following patch will add a -T option to sftp-server.c that forces
> use of a temp file for uploads to the server. It takes an argument that
> has 'XXXXXX' added to the end and used as a template string for
> mkstemp(3).
Wouldn't rsync over SSH be better for this sort of feature
aggregation? The potential chroot caged setups for sftp may have their
uses, but the more complex you make this sort of behavior, the more
vulnerable you become to alarming failures such as leaving behind
temporary file debris as the artifact of a failed transfer, especially
in edge cases like transferring large files and the transmission being
interrupted or running out of disk space.
More information about the openssh-unix-dev
mailing list