aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-03 10:40:28 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-03 10:40:46 +0200
commit0576557fa9e53b0b349aba0d1271a69356fe5f58 (patch)
tree7d64deb3cec517d109661e188ee98719a2a35d8e
parentf619c555206aa45d1d74fa7f8480145326f11039 (diff)
cleanup: remove left over atime/ctime code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-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);
}