(sys_exec_info_script): Store the inter-communication fd in the environment variable TAR_FD

This commit is contained in:
Sergey Poznyakoff
2007-04-03 21:38:00 +00:00
parent 7c0ba663c8
commit 5d4f057e31
+1 -1
View File
@@ -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";