diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-10 17:35:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-10 17:35:25 +0000 |
commit | ec87001206a2408b7d926f7c9d9327fe15ba5b80 (patch) | |
tree | e585ab27d50f26a6ec21b7e9e3650f6be93879b4 /URPM.xs | |
parent | 8098d5cdf3a18b474da743cd392b506524fd0e4d (diff) | |
download | perl-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.xs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |