Module Name: src
Committed By: dogcow
Date: Fri Apr 27 20:58:54 UTC 2012
Modified Files:
src/usr.sbin/makefs/chfs: chfs_mkfs.c
Log Message:
As this code is used by tools, and thus needs to be portable,
eliminate all the mucking around for an undocumented, seemingly
unused field and use 0.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/makefs/chfs/chfs_mkfs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/makefs/chfs/chfs_mkfs.c
diff -u src/usr.sbin/makefs/chfs/chfs_mkfs.c:1.4 src/usr.sbin/makefs/chfs/chfs_mkfs.c:1.5
--- src/usr.sbin/makefs/chfs/chfs_mkfs.c:1.4 Fri Apr 20 13:28:27 2012
+++ src/usr.sbin/makefs/chfs/chfs_mkfs.c Fri Apr 27 20:58:54 2012
@@ -209,11 +209,7 @@ write_dirent(fsinfo_t *fsopts, fsnode *n
}
fdirent.version = htole64(version++);
-#ifdef HAVE_STRUCT_STAT_ST_MTIMENSEC
- fdirent.mctime = htole32(node->inode->st.st_mtimensec);
-#else
- fdirent.mctime = htole32(node->inode->st.st_mtimespec.tv_nsec);
-#endif
+ fdirent.mctime = 0;
fdirent.nsize = htole32(strlen(name));
fdirent.dtype = htole32(IFTOCHT(node->type & S_IFMT));
fdirent.name_crc = htole32(crc32(0, (uint8_t *)name, fdirent.nsize));