summaryrefslogtreecommitdiff
path: root/audio/audacity/patches/patch-am
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2008-03-20 15:58:47 +0000
committerdrochner <drochner@pkgsrc.org>2008-03-20 15:58:47 +0000
commit1d2efa093bc7fd2f9d7030c32380c715d4d8f4b2 (patch)
treeedd8e29b25330b69e54126fef0b498e01f482c37 /audio/audacity/patches/patch-am
parent99c1212a7d8ca640ffb1fcf34d9cc82d93875fff (diff)
downloadpkgsrc-1d2efa093bc7fd2f9d7030c32380c715d4d8f4b2.tar.gz
fix unsafe tmp file creation (CVE-2007-6061), patch from Debian/Gentoo,
bump PKGREVISION
Diffstat (limited to 'audio/audacity/patches/patch-am')
-rw-r--r--audio/audacity/patches/patch-am13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/audacity/patches/patch-am b/audio/audacity/patches/patch-am
new file mode 100644
index 00000000000..19eb2d6d5c3
--- /dev/null
+++ b/audio/audacity/patches/patch-am
@@ -0,0 +1,13 @@
+$NetBSD: patch-am,v 1.5 2008/03/20 15:58:47 drochner Exp $
+
+--- src/AudacityApp.cpp.orig 2006-11-15 05:12:11.000000000 +0100
++++ src/AudacityApp.cpp
+@@ -391,7 +391,7 @@ bool AudacityApp::OnInit()
+ // * The user's .audacity-files directory in their home directory
+ // * The "share" and "share/doc" directories in their install path
+ #ifdef __WXGTK__
+- defaultTempDir.Printf("/tmp/audacity1.2-%s", wxGetUserId().c_str());
++ defaultTempDir.Printf("%s/.audacity1.2-%s", home.c_str(), wxGetUserId().c_str());
+ wxString pathVar = wxGetenv("AUDACITY_PATH");
+ if (pathVar != "")
+ AddMultiPathsToPathList(pathVar, audacityPathList);