-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed FAT mktime work-around to sleuthkit patch
- Loading branch information
1 parent
da38446
commit e14d040
Showing
3 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/tsk/fs/fatfs_utils.c b/tsk/fs/fatfs_utils.c | ||
index 9495ac923..440b0dff8 100755 | ||
--- a/tsk/fs/fatfs_utils.c | ||
+++ b/tsk/fs/fatfs_utils.c | ||
@@ -179,8 +179,11 @@ fatfs_dos_2_unix_time(uint16_t date, uint16_t time, uint8_t timetens) | ||
* it out */ | ||
tm1.tm_isdst = -1; | ||
|
||
- ret = mktime(&tm1); | ||
- | ||
+#if defined( _MSC_VER ) | ||
+ ret = _mkgmtime(&tm1); | ||
+#else | ||
+ ret = timegm(&tm1); | ||
+#endif | ||
if (ret < 0) { | ||
if (tsk_verbose) | ||
tsk_fprintf(stderr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters