Skip to content
Snippets Groups Projects
Commit 32ddf488 authored by Carsten Aulbert's avatar Carsten Aulbert
Browse files

Add extra environment variable

parent ce57d894
No related branches found
No related tags found
No related merge requests found
tar (1.32+dfsg-1atlas1) unstable; urgency=medium
* Enrich environment variables when using --to-command with
TAR_CUR_BLOCK indicating where in the tarball this object is.
-- Carsten Aulbert <carsten.aulbert@aei.mpg.de> Wed, 20 Jan 2021 15:54:40 +0100
tar (1.32+dfsg-1) unstable; urgency=medium
* New upstream version; closes: #892273
......
--- tar-1.32+dfsg.orig/src/system.c
+++ tar-1.32+dfsg/src/system.c
@@ -677,6 +677,9 @@ chr_to_env (char const *envar, char c)
static void
stat_to_env (char *name, char type, struct tar_stat_info *st)
{
+ char buf[UINTMAX_STRSIZE_BOUND];
+
+ str_to_env ("TAR_CUR_BLOCK", STRINGIFY_BIGINT (current_block_ordinal (), buf));
str_to_env ("TAR_VERSION", PACKAGE_VERSION);
str_to_env ("TAR_ARCHIVE", *archive_name_cursor);
dec_to_env ("TAR_VOLUME", archive_name_cursor - archive_name_array + 1);
......@@ -3,3 +3,4 @@ pristine-tar.diff
listed03-linux-only
oldgnu-unknown-mode-bits.patch
proper_it_translation.patch
add-current-block-to-env.diff
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment