[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files
From: |
Stefan Tomanek |
Subject: |
Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files |
Date: |
Sat, 21 Apr 2012 09:21:30 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Dies schrieb Paul Eggert (address@hidden):
> On 04/20/2012 03:30 PM, Stefan Tomanek wrote:
> > Is there any argument against the original patch
>
> Well, sure: it is a hack that doesn't solve
> the problem, and it might lead to similar
> future workaround hacks that will continue to
> increase tar's complexity and still not solve
> the problem.
So are --ignore-command-error and --ignore-failed-read. It should be the users
choice whether a missing file yields a warning or an error.
> And besides, it sounds like 'tar' can handle
> the situation in question, or something pretty close
> to it, without needing any changes.
How would you achieve the following with tar alone?
find / -xdev -cnewer /var/backups/lastrun -path '/var/cache/*' ! -type d -prune
-o -print0 -fls /var/backups/filelist \ |
tar cpf - --no-unquote --no-recursion --null -T -
> I don't have a specific scenario, no, since I don't
> know the exact situation. But the basic problem is a
> race condition between the time the file is chosen by 'find'
> to dump (or to not dump), and the time the file name is
> presented to 'tar'. I worry that an attacker could cause
> victim files to not be dumped, or conversely could cause
> files to be dumped when they should not be.
Then -T should probably removed from tar. I still don't understand how someone
can remove the files of another user from the filesystem before tar reaches
them.
- [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Stefan Tomanek, 2012/04/19
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/19
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Stefan Tomanek, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Stefan Tomanek, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Stefan Tomanek, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/20
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files,
Stefan Tomanek <=
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Joerg Schilling, 2012/04/21
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/21
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Joerg Schilling, 2012/04/22
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Paul Eggert, 2012/04/22
- Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Joerg Schilling, 2012/04/22
Re: [Bug-tar] [PATCH] add --ignore-missing to ignore missing input files, Joerg Schilling, 2012/04/20
Re: [Bug-tar] add --ignore-missing to ignore missing input files, Nathan Stratton Treadway, 2012/04/24
Re: [Bug-tar] add --ignore-missing to ignore missing input files, Joerg Schilling, 2012/04/25