fstat vs stat – fstat does not update?
Summary The issue at hand is the inconsistent behavior of fstat(2) when compared to stat(2) in updating the st_mtime field after a file modification. This discrepancy arises when using fstat with a file descriptor that was opened prior to the file modification, whereas stat always seems to fetch the latest information. Root Cause The root … Read more