mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
Kernel: Remove unused Inode::preopen_fd()
This commit is contained in:
parent
20b6ffef4f
commit
0f9ca51c76
Notes:
sideshowbarker
2024-07-17 23:06:50 +09:00
Author: https://github.com/awesomekling
Commit: 0f9ca51c76
2 changed files with 1 additions and 7 deletions
|
@ -248,9 +248,6 @@ ErrorOr<NonnullRefPtr<OpenFileDescription>> VirtualFileSystem::open(StringView p
|
|||
return EACCES;
|
||||
}
|
||||
|
||||
if (auto preopen_fd = inode.preopen_fd())
|
||||
return *preopen_fd;
|
||||
|
||||
if (metadata.is_fifo()) {
|
||||
auto fifo = TRY(inode.fifo());
|
||||
if (options & O_WRONLY) {
|
||||
|
@ -282,8 +279,7 @@ ErrorOr<NonnullRefPtr<OpenFileDescription>> VirtualFileSystem::open(StringView p
|
|||
return description;
|
||||
}
|
||||
|
||||
// Check for read-only FS. Do this after handling preopen FD and devices,
|
||||
// but before modifying the inode in any way.
|
||||
// Check for read-only FS. Do this after handling devices, but before modifying the inode in any way.
|
||||
if ((options & O_WRONLY) && custody.is_readonly())
|
||||
return EROFS;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue