mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
TmpFS: Set the root inode's timestamp to the current time
cc @bcoles :^)
This commit is contained in:
parent
1172746633
commit
abe9cec612
Notes:
sideshowbarker
2024-07-19 02:28:39 +09:00
Author: https://github.com/awesomekling
Commit: abe9cec612
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ NonnullRefPtr<TmpFSInode> TmpFSInode::create(TmpFS& fs, InodeMetadata metadata,
|
|||
NonnullRefPtr<TmpFSInode> TmpFSInode::create_root(TmpFS& fs)
|
||||
{
|
||||
InodeMetadata metadata;
|
||||
auto now = kgettimeofday();
|
||||
metadata.atime = now.tv_sec;
|
||||
metadata.ctime = now.tv_sec;
|
||||
metadata.mtime = now.tv_sec;
|
||||
metadata.mode = S_IFDIR | S_ISVTX | 0777;
|
||||
return create(fs, metadata, { fs.fsid(), 1 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue