]> Dogcows Code - chaz/tar/blobdiff - src/system.c
Supply more information to the --to-command script.
[chaz/tar] / src / system.c
index ea884966ad78b8f2856ac61fb4671e211bc66cd6..d646822c4a6ccc65ae0ad098b1b1f47956db6dd4 100644 (file)
@@ -629,6 +629,12 @@ static void
 stat_to_env (char *name, char type, struct tar_stat_info *st)
 {
   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);
+  dec_to_env ("TAR_BLOCKING_FACTOR", blocking_factor);
+  str_to_env ("TAR_FORMAT",
+             archive_format_string (current_format == DEFAULT_FORMAT ?
+                                    archive_format : current_format));
   chr_to_env ("TAR_FILETYPE", type);
   oct_to_env ("TAR_MODE", st->stat.st_mode);
   str_to_env ("TAR_FILENAME", name);
This page took 0.023398 seconds and 4 git commands to generate.