From 4ffa0ffcb7e13db0573eb86b14de7b3444aa24b6 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 18 May 2024 13:09:37 +0800 Subject: [PATCH] Disk (FreeBSD): ensure createTime is inited --- src/detection/disk/disk_bsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/disk/disk_bsd.c b/src/detection/disk/disk_bsd.c index dcd6cc507..84547b7ad 100644 --- a/src/detection/disk/disk_bsd.c +++ b/src/detection/disk/disk_bsd.c @@ -132,6 +132,8 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) ffStrbufInitS(&disk->filesystem, fs->f_fstypename); ffStrbufInit(&disk->name); disk->type = 0; + disk->createTime = 0; + detectFsInfo(fs, disk); if(fs->f_flags & MNT_RDONLY)