From 49997ac30b46c42a0366423cb2048f8257774805 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Fri, 20 Jun 2025 01:45:13 +0200 Subject: Store everything from lstat() --- src/dir_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dir_monitor.c') diff --git a/src/dir_monitor.c b/src/dir_monitor.c index df85f18..722f6d1 100644 --- a/src/dir_monitor.c +++ b/src/dir_monitor.c @@ -86,7 +86,7 @@ struct list_head *get_data_from_directory(char *path) { fullpath, strerror(errno), errno); continue; } - if ((tmp = create_node(de->d_name, stat_res.st_size, stat_res.st_mtime)) == NULL) { + if ((tmp = create_node(de->d_name, &stat_res)) == NULL) { LOGERR("ERROR: Skipping entry %s\n", de->d_name); continue; } -- cgit v1.2.3-70-g09d2