aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-10 17:35:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-10 17:35:25 +0000
commitec87001206a2408b7d926f7c9d9327fe15ba5b80 (patch)
treee585ab27d50f26a6ec21b7e9e3650f6be93879b4 /URPM.xs
parent8098d5cdf3a18b474da743cd392b506524fd0e4d (diff)
downloadperl-URPM-ec87001206a2408b7d926f7c9d9327fe15ba5b80.tar
perl-URPM-ec87001206a2408b7d926f7c9d9327fe15ba5b80.tar.gz
perl-URPM-ec87001206a2408b7d926f7c9d9327fe15ba5b80.tar.bz2
perl-URPM-ec87001206a2408b7d926f7c9d9327fe15ba5b80.tar.xz
perl-URPM-ec87001206a2408b7d926f7c9d9327fe15ba5b80.zip
add documentation
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs3
1 files changed, 3 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 04e9502..65ada75 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1000,8 +1000,11 @@ open_archive(char *filename, pid_t *pid, int *empty_archive) {
lseek(fd, 0, SEEK_SET);
dup2(fd, STDIN_FILENO); close(fd);
dup2(fdno[1], STDOUT_FILENO); close(fdno[1]);
+
+ /* get rid of "decompression OK, trailing garbage ignored" */
fd = open("/dev/null", O_WRONLY);
dup2(fd, STDERR_FILENO); close(fd);
+
execvp(unpacker[0], unpacker);
exit(1);
}