aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 01:01:10 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-03-19 01:01:10 +0100
commitd05d3f79b3ca9a923bfcd5c3979ebfcc8796fa9e (patch)
tree10303eed6961dce173373ac169e7c0700c5ff6ec
parentf3138be38681ab98b947c5e7d4e8fd9392276049 (diff)
Fix: don't use Linux specific st_mtim stat member
Always access the st_mtime field, which on Linux is #defined to a member of st_mtim. This fixes a travis CI build failure on Mac OS X. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--mkfs/dirscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs/dirscan.c b/mkfs/dirscan.c
index 824fba5..dbc862c 100644
--- a/mkfs/dirscan.c
+++ b/mkfs/dirscan.c
@@ -254,7 +254,7 @@ static int populate_dir(int dir_fd, fstree_t *fs, tree_node_t *root,
}
if (!(flags & DIR_SCAN_KEEP_TIME))
- sb.st_mtim = fs->defaults.st_mtim;
+ sb.st_mtime = fs->defaults.st_mtime;
n = fstree_mknode(root, ent->d_name, strlen(ent->d_name),
extra, &sb);