From 5d4f057e31981c3507c9f3f15bb89d99884135b1 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 3 Apr 2007 21:38:00 +0000 Subject: [PATCH] (sys_exec_info_script): Store the inter-communication fd in the environment variable TAR_FD --- src/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.c b/src/system.c index 612951b..e2d0431 100644 --- a/src/system.c +++ b/src/system.c @@ -826,9 +826,9 @@ sys_exec_info_script (const char **archive_name, int volume_number) setenv ("TAR_FORMAT", archive_format_string (current_format == DEFAULT_FORMAT ? archive_format : current_format), 1); + setenv ("TAR_FD", STRINGIFY_BIGINT (p[PWRITE], uintbuf), 1); xclose (p[PREAD]); - xdup2 (p[PWRITE], 3); argv[0] = "/bin/sh"; argv[1] = "-c"; -- 2.44.0