mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
Kernel: Fix write
s to ProcFS
(#6879)
When using `sysctl` you can enable/disable values by writing to the ProcFS. Some drift must have occured where writing was failing due to a missing `set_mtime` call. Whenever one `write`'s a file the modified time (mtime) will be updated so we need to implement this interface in ProcFS.
This commit is contained in:
parent
773c17b6a0
commit
2156c728cd
Notes:
sideshowbarker
2024-07-18 18:41:05 +09:00
Author: https://github.com/SpencerCDixon
Commit: 2156c728cd
Pull-request: https://github.com/SerenityOS/serenity/pull/6879
Reviewed-by: https://github.com/awesomekling
2 changed files with 6 additions and 0 deletions
|
@ -1562,6 +1562,11 @@ KResultOr<NonnullRefPtr<Custody>> ProcFSInode::resolve_as_link(Custody& base, Re
|
|||
return *res;
|
||||
}
|
||||
|
||||
KResult ProcFSInode::set_mtime(time_t)
|
||||
{
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
ProcFSProxyInode::ProcFSProxyInode(ProcFS& fs, FileDescription& fd)
|
||||
: Inode(fs, 0)
|
||||
, m_fd(fd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue