mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-12 16:57:05 -04:00
fuse-overlayfs: reset times struct before using it
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
a289a24acc
commit
a147df9b11
1
main.c
1
main.c
@ -2512,6 +2512,7 @@ ovl_setattr (fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, stru
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset (times, 0, sizeof (times));
|
||||||
times[0].tv_sec = UTIME_OMIT;
|
times[0].tv_sec = UTIME_OMIT;
|
||||||
times[1].tv_sec = UTIME_OMIT;
|
times[1].tv_sec = UTIME_OMIT;
|
||||||
if (to_set & FUSE_SET_ATTR_ATIME)
|
if (to_set & FUSE_SET_ATTR_ATIME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user