[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: |
Fri, 20 Apr 2012 09:15:09 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Dies schrieb Paul Eggert (address@hidden):
> On 04/19/2012 08:05 AM, Stefan Tomanek wrote:
> > + if (ignore_failed_read_option || (errno == ENOENT &&
> > ignore_missing_option))
>
> Why just ENOENT? Can't similar race conditions also
> generate errno values like ELOOP, EACCESS, ENOTDIR?
I have not encountered those yet.
But ENOENT is quite common, e.g. if "find" encounters a temporary file
(editor swp file), which is removed before tar can archive it.
> More generally, why use find + tar? The combination
> seems inherently unsafe. An attacker with
> write access to the file system could cause the combination
> to archive the "wrong" file, for example.
Because find has more possibilities to select a subset of files to save; I
consider it a pretty common combination.
- [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 <=
- 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, 2012/04/21
- 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