We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6c624 commit e485667Copy full SHA for e485667
Kernel/FileSystem/InodeFile.cpp
@@ -50,7 +50,13 @@ String InodeFile::absolute_path(const FileDescription& description) const
50
51
KResult InodeFile::truncate(off_t size)
52
{
53
- return m_inode->truncate(size);
+ auto truncate_result = m_inode->truncate(size);
54
+ if (truncate_result.is_error())
55
+ return truncate_result;
56
+ int mtime_result = m_inode->set_mtime(kgettimeofday().tv_sec);
57
+ if (mtime_result != 0)
58
+ return KResult(mtime_result);
59
+ return KSuccess;
60
}
61
62
KResult InodeFile::chown(uid_t uid, gid_t gid)
0 commit comments