]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: dbox_mailbox_open() - use ST_?TIME_SEC() macros
authorCaleb Xu <calebcenter@live.com>
Fri, 15 Sep 2023 19:00:35 +0000 (15:00 -0400)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 25 Sep 2023 10:38:50 +0000 (13:38 +0300)
src/lib-storage/index/dbox-common/dbox-storage.c

index c303be12cebfa0297892a915418f02fc106543d6..7c693b805e857bd4d5b20279117a4f738e17f285 100644 (file)
@@ -305,8 +305,8 @@ int dbox_mailbox_list_cleanup(struct mail_user *user, const char *path,
                   if the directory exists. In case, get also the ctime */
                struct stat stats;
                if (stat(path, &stats) == 0) {
-                       last_temp_file_scan = stats.st_atim.tv_sec;
-                       change_time = stats.st_ctim.tv_sec;
+                       last_temp_file_scan = ST_ATIME_SEC(stats);
+                       change_time = ST_CTIME_SEC(stats);
                } else {
                        if (errno != ENOENT)
                                e_error(user->event, "stat(%s) failed: %m", path);