bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Bogus 'file changed as we read it'


From: Paul Eggert
Subject: Re: [Bug-tar] Bogus 'file changed as we read it'
Date: 07 Mar 2004 14:25:00 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Gerd Knops <address@hidden> writes:

> It is perfectly OK to make a hardlink while tar executes, but that
> changes the ctime and hence triggers the 'file changed as we read
> it' error message.

But a program could modify the file and then use utime() to set its
mtime back.  Tar won't catch this unless it also checks for ctime
changes.  True, tar will sometime report changes that are in fact
innocuous.  But that's the price of being conservative (and that sort
of thing can occur even if tar inspects only mtime).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]