From 8e3a2a520d68e31bf93a90f20bd0f19d83ae5cc6 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 31 Oct 2007 12:56:46 +0000 Subject: [PATCH] (sys_exec_info_script,sys_exec_checkpoint_script): pass the current blocking factor in TAR_BLOCKING_FACTOR environment variable. --- src/system.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system.c b/src/system.c index 4183156..fb5a8fa 100644 --- a/src/system.c +++ b/src/system.c @@ -825,6 +825,8 @@ sys_exec_info_script (const char **archive_name, int volume_number) setenv ("TAR_VERSION", PACKAGE_VERSION, 1); setenv ("TAR_ARCHIVE", *archive_name, 1); setenv ("TAR_VOLUME", STRINGIFY_BIGINT (volume_number, uintbuf), 1); + setenv ("TAR_BLOCKING_FACTOR", + STRINGIFY_BIGINT (blocking_factor, uintbuf), 1); setenv ("TAR_SUBCOMMAND", subcommand_string (subcommand_option), 1); setenv ("TAR_FORMAT", archive_format_string (current_format == DEFAULT_FORMAT ? @@ -874,6 +876,8 @@ sys_exec_checkpoint_script (const char *script_name, setenv ("TAR_VERSION", PACKAGE_VERSION, 1); setenv ("TAR_ARCHIVE", archive_name, 1); setenv ("TAR_CHECKPOINT", STRINGIFY_BIGINT (checkpoint_number, uintbuf), 1); + setenv ("TAR_BLOCKING_FACTOR", + STRINGIFY_BIGINT (blocking_factor, uintbuf), 1); setenv ("TAR_SUBCOMMAND", subcommand_string (subcommand_option), 1); setenv ("TAR_FORMAT", archive_format_string (current_format == DEFAULT_FORMAT ? -- 2.44.0