On Tue, Nov 13, 2007 at 12:02:25AM +0100, Peter Stuge wrote:
> On Mon, Nov 12, 2007 at 06:33:54PM +0000, Colin Watson wrote:
> > To openssh-unix-dev: does anyone think this is worth a workaround?

>
> Gut feeling is that it should be fixed wherever the problem is.


Yeah, that's why I sent my mail to the CIFS list as well. Kernels won't
get upgraded instantly even if it gets fixed right away though, so
OpenSSH might want to regard it as a portability fix ...

> > The ftruncate seems rather unnecessary if we've already written out
> > the required number of bytes anyway.

>
> Not neccessarily, we may be overwriting a larger file with the same
> name.


Indeed; see the other part of this thread.

--
Colin Watson [cjwatson@debian.org]
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev