Re: tar confused error messages

2020-03-23 Thread Todd C . Miller
On Sun, 22 Mar 2020 11:41:55 +0100, Marc Espie wrote: > If tar can't create intermediate directories due to permission > issues, the resulting message is confusing: > > ./tar xf gcc.tar gcc-8.3.0/include/obstack.h > tar: Unable to create gcc-8.3.0/include/obstack.h: No such file or directory > >

Re: tar confused error messages

2020-03-22 Thread Marc Espie
On Sun, Mar 22, 2020 at 01:09:17PM +0100, Denis Fondras wrote: > On Sun, Mar 22, 2020 at 11:41:55AM +0100, Marc Espie wrote: > > If tar can't create intermediate directories due to permission > > issues, the resulting message is confusing: > > > > ./tar xf gcc.tar gcc-8.3.0/include/obstack.h > >

Re: tar confused error messages

2020-03-22 Thread Andrew Grillet
I would prefer that the name of the directory that cannot be created is given in the error message. If you are going to resolve the problem, "permission denied" is of no help at all. "Creating directory 'path/to/problem' - permission denied" makes it trivial to fix. On Sun, 22 Mar 2020 at

Re: tar confused error messages

2020-03-22 Thread Denis Fondras
On Sun, Mar 22, 2020 at 11:41:55AM +0100, Marc Espie wrote: > If tar can't create intermediate directories due to permission > issues, the resulting message is confusing: > > ./tar xf gcc.tar gcc-8.3.0/include/obstack.h > tar: Unable to create gcc-8.3.0/include/obstack.h: No such file or

tar confused error messages

2020-03-22 Thread Marc Espie
If tar can't create intermediate directories due to permission issues, the resulting message is confusing: ./tar xf gcc.tar gcc-8.3.0/include/obstack.h tar: Unable to create gcc-8.3.0/include/obstack.h: No such file or directory (here I have gcc-8.3.0 owned by root and no permissions) The