diff options
author | obache <obache@pkgsrc.org> | 2010-04-28 07:32:40 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-04-28 07:32:40 +0000 |
commit | 9332c4e4875a7cd07d8c3cac62a5057817acc92d (patch) | |
tree | 6d0b0392b1119122d50df92bba76794c95da36b6 /converters/pstotext/patches | |
parent | 6e45e2c47f53ee94b73f955d28b7bf1fb1da79ec (diff) | |
download | pkgsrc-9332c4e4875a7cd07d8c3cac62a5057817acc92d.tar.gz |
let to exec "gs" with absolute path as PR#43214.
Bump PKGREVISION.
Diffstat (limited to 'converters/pstotext/patches')
-rw-r--r-- | converters/pstotext/patches/patch-ab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converters/pstotext/patches/patch-ab b/converters/pstotext/patches/patch-ab index 0ca60b4176e..f1fe64ea7c3 100644 --- a/converters/pstotext/patches/patch-ab +++ b/converters/pstotext/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.1.1.1 2010/04/25 12:46:19 obache Exp $ +$NetBSD: patch-ab,v 1.2 2010/04/28 07:32:41 obache Exp $ * Set absolute path for GS cmmand. * Fixes CVE-2005-2536 and SA20012 @@ -133,7 +133,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2010/04/25 12:46:19 obache Exp $ + if (p == 0) { /* child */ + close(fd[0]); + dup2(fd[1], 1); /* Redirect stdout into pipe to parent */ -+ execvp("gs", gs_argv); ++ execvp(gs_cmd, gs_argv); + perror("execvp: "); status=cleanup(); exit(1); + } else { /* parent */ + close(fd[1]); |