From 0576557fa9e53b0b349aba0d1271a69356fe5f58 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 3 Aug 2019 10:40:28 +0200 Subject: cleanup: remove left over atime/ctime code Signed-off-by: David Oberhollenzer --- lib/fstree/fstree_from_dir.c | 5 +---- lib/fstree/fstree_from_file.c | 2 -- 2 files changed, 1 insertion(+), 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); } -- cgit v1.2.3