[BusyBox] -d support for gzip

Richard June rjune at ims1.imagestream-is.com
Thu Dec 14 11:37:36 UTC 2000


Use the old busybox gzip(0.47) with gnu tar.
What happens is when you run tar -xzf or -tzf tar runs gzip -d (or bzip -d
if you use 'I' instead of 'z'), so with tar -xzf you get an error from
busybox, basicly it gives you the help, and subsequently from tar.

On Thu, 14 Dec 2000, Glenn McGrath wrote:

> Richard June wrote:
> > 
> > Anybody who uses gnu tar with busybox will need this so that tar -tzf and
> > tar -xzf (possibly others) will work.
> > 
> > *** gzip.c.orig Wed Nov 29 11:04:40 2000
> > --- gzip.c      Tue Dec 12 12:37:30 2000
> > *************** int gzip_main(int argc, char **argv)
> > *** 1820,1825 ****
> > --- 1820,1829 ----
> >                         case '1': case '2': case '3': case '4': case '5':
> >                         case '6': case '7': case '8': case '9':
> >                                 break;
> > +                       case 'd':
> > +                               gunzip_main(argc, argv);
> > +                               exit(0);
> > +                               break;
> >                         default:
> >                                 usage(gzip_usage);
> >                         }
> > 
> 
> Hi, this looks like a nice way to get gzip to call gunzip, but i dont
> follow what it has to do with tar.
> 
> Glenn
> 






More information about the busybox mailing list