FileDescriptor: Let TTY handle its own absolute_path().

This commit is contained in:
Andreas Kling 2019-04-28 15:09:23 +02:00
commit c91b0d6b5f
Notes: sideshowbarker 2024-07-19 14:33:41 +09:00
2 changed files with 1 additions and 2 deletions

View file

@ -384,8 +384,6 @@ bool FileDescriptor::is_fsfile() const
KResultOr<String> FileDescriptor::absolute_path()
{
if (is_tty())
return tty()->tty_name();
if (is_fifo())
return String::format("fifo:%u", m_fifo.ptr());
if (m_file)