Skip to content

Commit

Permalink
Fixed Find_File_Data_Posix::GetTime() to work on files outside the cu…
Browse files Browse the repository at this point in the history
…rrent directory.
  • Loading branch information
isojalka authored and hifi committed Mar 16, 2024
1 parent 297556c commit ac7f03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/file_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ unsigned int Find_File_Data_Posix::GetTime() const
return 0;
}
struct stat buf = {0};
if (stat(DirEntry->d_name, &buf) != 0) {
if (stat(FullName, &buf) != 0) {
return false;
}
return buf.st_mtime;
Expand Down

0 comments on commit ac7f03e

Please sign in to comment.