From: Sergey Poznyakoff Date: Tue, 3 Apr 2007 21:38:00 +0000 (+0000) Subject: (sys_exec_info_script): Store the inter-communication fd in the environment variable... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5d4f057e31981c3507c9f3f15bb89d99884135b1;p=chaz%2Ftar (sys_exec_info_script): Store the inter-communication fd in the environment variable TAR_FD --- 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";