X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=doc%2Ftar.texi;h=ece40f4e7cf3903ae1811e33210c6b5cf4c70e0e;hp=424617c25846f664a07d983f54e147d212edce99;hb=2af87fa2776c8125a587a9b0c2c4fae3bf921ff7;hpb=95a51b93d0d22d3a037cd6f303cca68a2d6c66dd diff --git a/doc/tar.texi b/doc/tar.texi index 424617c..ece40f4 100644 --- a/doc/tar.texi +++ b/doc/tar.texi @@ -3086,6 +3086,17 @@ Used when creating an archive. Prevents @command{tar} from recursing into directories that are on different file systems from the current directory. +@opsummary{one-top-level} +@item --one-top-level +Tells @command{tar} to create a new directory beneath the extraction directory +(or the one passed to @option{-C}) and use it to guard against tarbombs. The +name of the new directory will be equal to the name of the archive with the +extension stripped off. If any archive names (after transformations from +@option{--transform} and @option{--strip-components}) do not already begin with +it, the new directory will be prepended to the names immediately before +extraction. Recognized extensions are @samp{.tar}, @samp{.taz}, @samp{.tbz}, +@samp{.tb2}, @samp{.tgz}, @samp{.tlz} and @samp{.txz}. + @opsummary{overwrite} @item --overwrite