Re: tar extract to stdout

2022-05-27 Thread Ted Unangst
Err. Index: extern.h === RCS file: /home/cvs/src/bin/pax/extern.h,v retrieving revision 1.60 diff -u -p -r1.60 extern.h --- extern.h23 Mar 2020 20:04:19 - 1.60 +++ extern.h27 May 2022 00:30:36 - @@ -284,7 +284,7 @

Re: tar extract to stdout

2022-05-27 Thread Theo de Raadt
Ted Unangst wrote: > On 2022-05-26, Todd C. Miller wrote: > > Our tar's -O flag is only used when creating an archive, it is > > unused for extraction. I'd prefer that we use the same option > > letter as GNU tar and bsdtar for this. > > That would look something like this. The smallest diffs

Re: tar extract to stdout

2022-05-27 Thread Ted Unangst
On 2022-05-26, Todd C. Miller wrote: > Our tar's -O flag is only used when creating an archive, it is > unused for extraction. I'd prefer that we use the same option > letter as GNU tar and bsdtar for this. That would look something like this.

Re: tar extract to stdout

2022-05-26 Thread Todd C . Miller
Our tar's -O flag is only used when creating an archive, it is unused for extraction. I'd prefer that we use the same option letter as GNU tar and bsdtar for this. - todd

tar extract to stdout

2022-05-26 Thread Ted Unangst
tar can read and write archive files from stdin/out, but cannot extract files to stdout. This may be kinda esoteric, but there's a few uses. Archive of log files, etc., where you want to check for something without extracting to a tmp file. I tried working around this by renaming to /dev/fd/1, but