aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
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);
}