bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar keeps reporting "file changed as we read it" on random


From: Paul Eggert
Subject: Re: [Bug-tar] tar keeps reporting "file changed as we read it" on random files
Date: Wed, 2 Dec 2015 14:07:49 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 12/02/2015 01:52 PM, Mark O'Keefe wrote:
Is the mtime versus ctime security concern still relevant for a directory?

Yes, because applications can set directory mtime values to whatever they want, using system calls like utimensat. If an application backdates a directory, tar could incorrectly think its contents unchanged, and could therefore dump files incorrectly. This can matter if tar is being used for incremental backups.

Quite possibly you're right and tar could use yet another option to work around this sort of file system misbehavior. But really, the file system should get fixed, as tar's not the only program that assumes ctime is reliable.



reply via email to

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