Inadequate error checking in rsync 2.5.5

jw schultz jw at pegasys.ws
Tue Aug 19 06:59:37 EST 2003


On Mon, Aug 18, 2003 at 01:41:51PM -0700, David Norwood wrote:
> > > Okay, with this patch I now get error messages, but it still creates
> null
> > > filled output files.  I guess that is what you meant by "the behavior is
> the
> > > same".
> 
> > That is correct.  At the point in which we detect the
> > problem there isn't anything we can do to produce
> > good files.  The most i can see our being able to do is to
> > warn you that it has happened.
> 
> I understand that there is no chance of getting good files in this case.  My
> point is that the null filled files are undesireable.  They have the right
> size and timestamp, so rsync won't replace them on subsequent runs.  Can
> rsync remove these files after the error is detected?

IFF we could be sure of distinguishing between the access
control issue of SMB and NFS, and truncation and mandatory
locking i'd consider it.

The one thing that does occur to me as possibly acceptable
would be to mess with the mod_time.  Either set it to NOW or
perhaps epoch+1.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt



More information about the rsync mailing list