aboutsummaryrefslogtreecommitdiff
path: root/lib/fstree
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstree')
-rw-r--r--lib/fstree/fstree_from_dir.c5
-rw-r--r--lib/fstree/fstree_from_file.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/fstree/fstree_from_dir.c b/lib/fstree/fstree_from_dir.c
index 494b644..9066809 100644
--- a/lib/fstree/fstree_from_dir.c
+++ b/lib/fstree/fstree_from_dir.c
@@ -99,11 +99,8 @@ static int populate_dir(fstree_t *fs, tree_node_t *root, bool keep_time_stamps)
goto fail;
}
- if (!keep_time_stamps) {
- sb.st_atim = fs->defaults.st_atim;
+ if (!keep_time_stamps)
sb.st_mtim = fs->defaults.st_mtim;
- sb.st_ctim = fs->defaults.st_ctim;
- }
n = fstree_mknode(fs, root, ent->d_name, strlen(ent->d_name),
extra, &sb);
diff --git a/lib/fstree/fstree_from_file.c b/lib/fstree/fstree_from_file.c
index 57b24cc..619e83f 100644
--- a/lib/fstree/fstree_from_file.c
+++ b/lib/fstree/fstree_from_file.c
@@ -73,9 +73,7 @@ static int add_file(fstree_t *fs, const char *filename, size_t line_num,
sb.st_uid = basic->st_uid;
sb.st_gid = basic->st_gid;
sb.st_mode = basic->st_mode;
- sb.st_atim = basic->st_atim;
sb.st_mtim = basic->st_mtim;
- sb.st_ctim = basic->st_ctim;
return add_generic(fs, filename, line_num, path, &sb, extra);
}