[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: files from subversion repo mounted as webDAV, get zeroed out shortly after writing

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Wed, 11 Jan 2012 10:02:08 -0600

On Wed, Jan 11, 2012 at 2:17 AM, Tom <tom_at_limepepper.co.uk> wrote:
>
> The server intermittently zeroes out the files, either geany/gedit offers a
> reload (which I have learned is a no-no) and the file reloaded is empty. I
> thought it might be something to do with gtk temp files, but it is
> replicable with vi or kate.

I can't help with what is going wrong, but vi will do your edit in a
tmp file copy, then truncate and overwrite your original file so as to
keep the original owner/modes which you might not be able to
reproduce. So the truncate is normal but it should be followed by
writing new contents.

-- 
  Les Mikesell
    lesmikesell_at_gmail.com
Received on 2012-01-11 17:02:41 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.