ecere/sys/File.c: Fixed misrepresentation of st_ctime as 'created' time
authorJerome St-Louis <jerome@ecere.com>
Sat, 9 Jan 2016 02:29:23 +0000 (21:29 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 9 Jan 2016 02:55:13 +0000 (21:55 -0500)
- UNIX st_ctime is inode change time, not creation time
- Now always returning 0 for ctime (Some UNIX systems have 'btime' for creation)
- This should address Debian build reproducibility issues

ecere/src/sys/File.c

index 3bbbb2c..8bdb0c1 100644 (file)
@@ -354,7 +354,9 @@ bool FILE_FileGetStats(const char * fileName, FileStats * stats)
       }
 #else
       stats->accessed = s.st_atime;
-      stats->created = s.st_ctime;
+      // UNIX st_ctime is 'status change' time, not creation time
+      // Marking created as 0, as ctime changes cause unreproducible builds
+      stats->created = 0;
       stats->modified = s.st_mtime;
 #endif
 /*