diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs index 1e57be0..efc4057 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs | |||
@@ -425,14 +425,14 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
425 | { | 425 | { |
426 | if (File.Exists(path)) | 426 | if (File.Exists(path)) |
427 | { | 427 | { |
428 | return new FileStream(path, FileMode.Open); | 428 | return new FileStream(path, FileMode.Open, FileAccess.Read); |
429 | } | 429 | } |
430 | else | 430 | else |
431 | { | 431 | { |
432 | Uri uri = new Uri(path); // throw exception if not valid URI | 432 | Uri uri = new Uri(path); // throw exception if not valid URI |
433 | if (uri.Scheme == "file") | 433 | if (uri.Scheme == "file") |
434 | { | 434 | { |
435 | return new FileStream(uri.AbsolutePath, FileMode.Open); | 435 | return new FileStream(uri.AbsolutePath, FileMode.Open, FileAccess.Read); |
436 | } | 436 | } |
437 | else | 437 | else |
438 | { | 438 | { |