mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-10 09:01:13 +02:00
Bug 1220 - (Residual) OS X: Exclude directories with substring /tmp/ in them.
This commit is contained in:
parent
f6870896a1
commit
06b623bbb1
@ -1593,9 +1593,10 @@ bool AudacityApp::IsTempDirectoryNameOK( const wxString & Name ){
|
|||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
// This test is to fix bug 1220 on a 1.x to 2.x to 2.1.3 upgrade.
|
// 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
|
// It is less permissive than we could be as it stops a path
|
||||||
// with this string ANYWHERE within it.
|
// with this string ANYWHERE within it rather than excluding just
|
||||||
if( Name.Contains( "/tmp/audacity1.") )
|
// the paths that the earlier Audacities used to create.
|
||||||
|
if( Name.Contains( "/tmp/") )
|
||||||
return false;
|
return false;
|
||||||
BadPath = BadPath.BeforeLast( '/' ) + "/";
|
BadPath = BadPath.BeforeLast( '/' ) + "/";
|
||||||
wxFileName cmpFile( Name );
|
wxFileName cmpFile( Name );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user