]> Dogcows Code - chaz/tar/commitdiff
(sys_exec_info_script): Store the inter-communication fd in the environment variable...
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 3 Apr 2007 21:38:00 +0000 (21:38 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 3 Apr 2007 21:38:00 +0000 (21:38 +0000)
src/system.c

index 612951bf98d72556dc7a581389feff13f07a73be..e2d043105f837c09518266ec67be956099df1740 100644 (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";
This page took 0.023882 seconds and 4 git commands to generate.