Re: [PATCH] add sftp-server option to force temp files

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Sun, Feb 20, 2022 at 11:27:26PM +0100, Thorsten Glaser wrote:
> On Sun, 20 Feb 2022, Nathan Wagner wrote:
> 
> > intended name.  The bad temp file is a lot easier to identify and
> > remove.
> 
> Maybe make it possible to add a ~ after the XXXXXXXXXXes?
> mkstemps(3), that is.

The mkstemp(3) interface requires that the last six characters of the
passed template string be 'X'.  There are non-posix functions that allow
for a suffix, but I wanted to keep the code as portable as seemed
reasonable.

-- 
nw
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux