mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
Kernel: Use correct timestamp in sys$utimens()
We were mixing up the nanosecond and second parts of the timestamps.
Regressed in 280694bb46
.
This commit is contained in:
parent
54e0e85581
commit
2cc947ede4
Notes:
sideshowbarker
2024-07-17 07:13:28 +09:00
Author: https://github.com/awesomekling
Commit: 2cc947ede4
1 changed files with 2 additions and 2 deletions
|
@ -228,9 +228,9 @@ ErrorOr<void> VirtualFileSystem::utimensat(Credentials const& credentials, Strin
|
|||
|
||||
// NOTE: A standard ext2 inode cannot store nanosecond timestamps.
|
||||
TRY(inode.update_timestamps(
|
||||
(atime.tv_nsec != UTIME_OMIT) ? atime.tv_nsec : Optional<time_t> {},
|
||||
(atime.tv_nsec != UTIME_OMIT) ? atime.tv_sec : Optional<time_t> {},
|
||||
{},
|
||||
(mtime.tv_nsec != UTIME_OMIT) ? mtime.tv_nsec : Optional<time_t> {}));
|
||||
(mtime.tv_nsec != UTIME_OMIT) ? mtime.tv_sec : Optional<time_t> {}));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue