[Toybox] alias tar="tar --restrict"

enh enh at google.com
Thu Apr 11 17:12:52 PDT 2019


On Thu, Apr 11, 2019 at 5:03 PM Rob Landley <rob at landley.net> wrote:
>
> On 4/11/19 5:52 PM, enh wrote:
> >>> (in general the other direction is dangerous too, but in this specific
> >>> case i'm pretty sure no-one wants to change tapes on Android or during
> >>> an AOSP build --- though you'd be surprised by some of the requests we
> >>> do get from folks who don't value hermetic builds quite as much as we
> >>> do!)
> >>
> >> If they ask here, I'll take it into consideration. :)
> >
> > aye, but not for long... the number #1 request is perl :-)
>
> Have you tried offering them lua? :)

(lua is actually in the tree, but not for the host.)

> >> *shrug* Pick a name and I'll rename it, not tied to that.
> >
> > i didn't have any particularly good suggestions --restrict-paths?
> > --restrict-directory?
>
> How about tar -D which is an illegal option in ubuntu 14.04. (Yes, I need to
> upgrade...)

please, no! leave the short option space alone.

> >> (I note that gnu/dammit -a is "autodetect compression type" and busybox -a is
> >> "lzma", which was added after my time on the project. I.E. I didn't start this...)
> >
> > well, this is why i don't like adding new short options --- collisions
> > are almost certain. (although, yes, even for long options some names
> > are more tempting than others...)
>
> Yeah but if their implementation's 20 years old and I had the short option name
> first...

that would be a stronger argument if you were actually going to POSIX
with this stuff. the trouble is that they _do_...

> >> Rob
>
> Rob



More information about the Toybox mailing list