diff --git a/Userland/Libraries/LibCore/File.cpp b/Userland/Libraries/LibCore/File.cpp index dc2fbdf816..24f707d07c 100644 --- a/Userland/Libraries/LibCore/File.cpp +++ b/Userland/Libraries/LibCore/File.cpp @@ -481,8 +481,8 @@ Result File::copy_directory(String const& dst_path, Strin // FIXME: Implement utimens() and use it here. struct utimbuf timbuf; - timbuf.actime = src_stat.st_atim.tv_sec; - timbuf.modtime = src_stat.st_atim.tv_sec; + timbuf.actime = src_stat.st_atime; + timbuf.modtime = src_stat.st_atime; if (utime(dst_path.characters(), &timbuf) < 0) return CopyError { OSError(errno), false }; }