mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
FileDescriptor: Let TTY handle its own absolute_path().
This commit is contained in:
parent
e886337a67
commit
c91b0d6b5f
2 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -15,6 +15,7 @@ public:
|
|||
virtual bool can_read(Process&) const override;
|
||||
virtual bool can_write(Process&) const override;
|
||||
virtual int ioctl(Process&, unsigned request, unsigned arg) override final;
|
||||
virtual String absolute_path() const override { return tty_name(); }
|
||||
|
||||
virtual String tty_name() const = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue