diff --git a/src/detection/disk/disk_bsd.c b/src/detection/disk/disk_bsd.c index 84547b7ad..446e2e610 100644 --- a/src/detection/disk/disk_bsd.c +++ b/src/detection/disk/disk_bsd.c @@ -140,7 +140,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) disk->type |= FF_DISK_VOLUME_TYPE_READONLY_BIT; struct stat st; - if(stat(fs->f_mntonname, &st) == 0) + if(stat(fs->f_mntonname, &st) == 0 && st.st_birthtimespec.tv_sec > 0) disk->createTime = (uint64_t)((st.st_birthtimespec.tv_sec * 1000) + (st.st_birthtimespec.tv_nsec / 1000000)); }