From ec87001206a2408b7d926f7c9d9327fe15ba5b80 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 10 Aug 2007 17:35:25 +0000 Subject: add documentation --- URPM.xs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'URPM.xs') 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); } -- cgit v1.2.1