From a147df9b112added19fc91e93e690fd411bec6de Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 6 Nov 2018 21:48:42 +0100 Subject: [PATCH] fuse-overlayfs: reset times struct before using it Signed-off-by: Giuseppe Scrivano --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 38a5602..f9c352d 100644 --- a/main.c +++ b/main.c @@ -2512,6 +2512,7 @@ ovl_setattr (fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, stru return; } + memset (times, 0, sizeof (times)); times[0].tv_sec = UTIME_OMIT; times[1].tv_sec = UTIME_OMIT; if (to_set & FUSE_SET_ATTR_ATIME)