diff --git a/Userland/Utilities/tail.cpp b/Userland/Utilities/tail.cpp index 228d6a4d51..e4084447f8 100644 --- a/Userland/Utilities/tail.cpp +++ b/Userland/Utilities/tail.cpp @@ -62,7 +62,7 @@ ErrorOr serenity_main(Main::Arguments arguments) if (!follow) TRY(Core::System::pledge("stdio")); - auto file_is_seekable = !f->tell().is_error(); + auto file_is_seekable = !f->seek(0, SeekMode::SetPosition).is_error(); if (!file_is_seekable) { do { // FIXME: If f is the standard input, f->read_all() does not block