File audacity-CVE-2020-11867.patch of Package audacity.openSUSE_Backports_SLE-15-SP3_Update

Index: audacity-Audacity-2.2.2/src/AudacityApp.cpp
===================================================================
--- audacity-Audacity-2.2.2.orig/src/AudacityApp.cpp	2020-12-03 13:13:41.805395040 +0200
+++ audacity-Audacity-2.2.2/src/AudacityApp.cpp	2020-12-03 13:14:20.670860974 +0200
@@ -1281,7 +1281,7 @@ bool AudacityApp::OnInit()
    wxString home = wxGetHomeDir();
 
    /* On Unix systems, the default temp dir is in /var/tmp. */
-   defaultTempDir.Printf(wxT("/var/tmp/audacity-%s"), wxGetUserId());
+   defaultTempDir.Printf(wxT("/home/%s/.audacity-data/tmp/"), wxGetUserId());
 
 // DA: Path env variable.
 #ifndef EXPERIMENTAL_DA
openSUSE Build Service is sponsored by