Skip to content

Commit

Permalink
Merge pull request #2788 from APriestman/removeFilesystemInclude
Browse files Browse the repository at this point in the history
Disable logical file systems for non-windows.
  • Loading branch information
bcarrier committed Dec 23, 2022
2 parents bc576e0 + 602678b commit 99f0b41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tsk/fs/logical_fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <string>
#include <set>
#include <string.h>
#include <filesystem>

#include "tsk_fs_i.h"
#include "tsk_fs.h"
Expand Down Expand Up @@ -1633,6 +1632,13 @@ logical_fs_open(TSK_IMG_INFO * img_info) {
TSK_FS_INFO *fs = NULL;
IMG_LOGICAL_INFO *logical_img_info = NULL;

#ifndef TSK_WIN32
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_FS_ARG);
tsk_error_set_errstr("logical_fs_open: logical file systems currently only enabled on Windows");
return NULL;
#endif

if (img_info->itype != TSK_IMG_TYPE_LOGICAL) {
tsk_error_reset();
tsk_error_set_errno(TSK_ERR_FS_ARG);
Expand Down

0 comments on commit 99f0b41

Please sign in to comment.