diff options
Diffstat (limited to 'mcs/class/corlib/System.IO/Path.cs')
-rw-r--r-- | mcs/class/corlib/System.IO/Path.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.IO/Path.cs b/mcs/class/corlib/System.IO/Path.cs index 2887b80d4bb..f550fd4128a 100644 --- a/mcs/class/corlib/System.IO/Path.cs +++ b/mcs/class/corlib/System.IO/Path.cs @@ -450,6 +450,10 @@ namespace System.IO { // avoid an endless loop throw; } + catch (UnauthorizedAccessException) { + // This can happen if we don't have write permission to /tmp + throw; + } catch { } } while (f == null); |