Home directory must be executable for access

This commit is contained in:
Richard Frith-Macdonald 2023-10-10 15:46:23 +01:00
parent 655c72855d
commit 95490d0d5c

View file

@ -1518,13 +1518,13 @@ valgrindLog(NSString *name)
if (dir)
{
if ([mgr isWritableFileAtPath: dir])
if ([mgr isExecutableFileAtPath: dir])
{
[task setCurrentDirectoryPath: dir];
}
else
{
NSLog(@"Failed to write path '%@' (Home '%@') for %@",
NSLog(@"Failed to access path '%@' (Home '%@') for %@",
dir, home, name);
}
}