From 5f97b560dfe955e4f1d53be906f5ff60c43f5c85 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 7 Apr 2023 17:13:37 +0200 Subject: Fix fstree defaults usage in Windows version of fstree_from_dir Signed-off-by: David Oberhollenzer --- bin/gensquashfs/src/fstree_from_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/gensquashfs') diff --git a/bin/gensquashfs/src/fstree_from_dir.c b/bin/gensquashfs/src/fstree_from_dir.c index 820157c..d117435 100644 --- a/bin/gensquashfs/src/fstree_from_dir.c +++ b/bin/gensquashfs/src/fstree_from_dir.c @@ -95,7 +95,7 @@ static int add_node(fstree_t *fs, tree_node_t *root, if (flags & DIR_SCAN_KEEP_TIME) { n->mod_time = w32time_to_sqfs_time(&(entry->ftLastWriteTime)); } else { - n->mod_time = fs->defaults.st_mtime; + n->mod_time = fs->defaults.mtime; } fstree_insert_sorted(root, n); -- cgit v1.2.3