summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibArchive/TarStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibArchive/TarStream.cpp')
-rw-r--r--Userland/Libraries/LibArchive/TarStream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibArchive/TarStream.cpp b/Userland/Libraries/LibArchive/TarStream.cpp
index 7ca219f3d8..a01081c1ba 100644
--- a/Userland/Libraries/LibArchive/TarStream.cpp
+++ b/Userland/Libraries/LibArchive/TarStream.cpp
@@ -48,8 +48,7 @@ bool TarFileStream::is_eof() const
ErrorOr<size_t> TarFileStream::write(ReadonlyBytes)
{
- // This is purely for wrapping and representing file contents in an archive.
- VERIFY_NOT_REACHED();
+ return Error::from_errno(EBADF);
}
ErrorOr<NonnullOwnPtr<TarInputStream>> TarInputStream::construct(NonnullOwnPtr<Core::Stream::Stream> stream)