From 06b623bbb1e511c7f8e4ecefe15258b897fc6713 Mon Sep 17 00:00:00 2001 From: James Crook Date: Sat, 3 Sep 2016 17:49:57 +0100 Subject: [PATCH] Bug 1220 - (Residual) OS X: Exclude directories with substring /tmp/ in them. --- src/AudacityApp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 1687da323..c0a67b7e8 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1593,9 +1593,10 @@ bool AudacityApp::IsTempDirectoryNameOK( const wxString & Name ){ #ifdef __WXMAC__ // This test is to fix bug 1220 on a 1.x to 2.x to 2.1.3 upgrade. - // It is very slightly less permissive than we could be as it stops a path - // with this string ANYWHERE within it. - if( Name.Contains( "/tmp/audacity1.") ) + // It is less permissive than we could be as it stops a path + // with this string ANYWHERE within it rather than excluding just + // the paths that the earlier Audacities used to create. + if( Name.Contains( "/tmp/") ) return false; BadPath = BadPath.BeforeLast( '/' ) + "/"; wxFileName cmpFile( Name );