Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gill <tyler.gill@byu.net>2021-03-18 21:24:11 +0300
committerTyler Gill <tyler.gill@byu.net>2021-03-18 21:24:11 +0300
commit7f1b6bc7a2863bd53a0c4461c8599fd042a036db (patch)
treeecc5b60c35824b1e564d10341cf54e13a3a8a890 /Duplicati/CommandLine
parent9a4632d55191c27f4d63406b29a701fe6ee4bddc (diff)
Fix some bugs in ReadLimitLengthStream changes, and add a unit test for some of the new behavior.
Also make NonSeekableStream block seeks via the Position setter.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/BackendTester/NonSeekableStream.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Duplicati/CommandLine/BackendTester/NonSeekableStream.cs b/Duplicati/CommandLine/BackendTester/NonSeekableStream.cs
index f47f124c4..f60dc495d 100644
--- a/Duplicati/CommandLine/BackendTester/NonSeekableStream.cs
+++ b/Duplicati/CommandLine/BackendTester/NonSeekableStream.cs
@@ -42,14 +42,20 @@ namespace Duplicati.CommandLine.BackendTester
}
}
+ public override long Position
+ {
+ get => base.Position;
+ set => throw new NotSupportedException();
+ }
+
public override long Seek(long offset, System.IO.SeekOrigin origin)
{
- throw new NotImplementedException();
+ throw new NotSupportedException();
}
public override void SetLength(long value)
{
- throw new NotImplementedException();
+ throw new NotSupportedException();
}
}
}