-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 7753f33. --- TYPE: NO_HISTORY DESC: Revert "Update libmagic to version 5.45 (#4673)"
- Loading branch information
Showing
32 changed files
with
1,239 additions
and
356 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
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
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
39 changes: 0 additions & 39 deletions
39
ports/libmagic/0002-Change-zlib-lib-name-to-match-CMake-output.patch
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 6d10bef865b69764f6e0ddd2b0f6a84e484cdb37 Mon Sep 17 00:00:00 2001 | ||
From: Long Nguyen <[email protected]> | ||
Date: Sun, 9 May 2021 13:25:14 +0700 | ||
Subject: [PATCH 09/14] No fcntl in magic.c | ||
|
||
--- | ||
src/magic.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/magic.c b/src/magic.c | ||
index e9aeafa..382bd96 100644 | ||
--- a/src/magic.c | ||
+++ b/src/magic.c | ||
@@ -462,7 +462,7 @@ file_or_fd(struct magic_set *ms, const char *inname, int fd) | ||
rv = 0; | ||
goto done; | ||
} | ||
-#if O_CLOEXEC == 0 | ||
+#if O_CLOEXEC == 0 && !defined(_WIN32) | ||
(void)fcntl(fd, F_SETFD, FD_CLOEXEC); | ||
#endif | ||
} | ||
-- | ||
2.29.2.windows.2 | ||
|
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
24 changes: 0 additions & 24 deletions
24
ports/libmagic/0012-Convert-MSYS2-paths-to-Windows-paths.patch
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
ports/libmagic/0013-Check-for-backslash-in-argv-0-on-Windows.patch
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
From fa0e11f36bb0e322250e1e488ced9f2bf166874f Mon Sep 17 00:00:00 2001 | ||
From: Long Nguyen <[email protected]> | ||
Date: Fri, 14 May 2021 18:11:39 +0700 | ||
Subject: [PATCH 14/14] Define POSIX macros if missing | ||
|
||
--- | ||
src/file.h | 15 +++++++++++++++ | ||
1 file changed, 15 insertions(+) | ||
|
||
diff --git a/src/file.h b/src/file.h | ||
index ccfe0da..98cd37b 100644 | ||
--- a/src/file.h | ||
+++ b/src/file.h | ||
@@ -100,6 +100,21 @@ | ||
#include <stdarg.h> | ||
#include <dirent.h> | ||
|
||
+#if !defined(S_IFBLK) | ||
+#define S_IFBLK 0 | ||
+#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) | ||
+#endif | ||
+ | ||
+#if !defined(S_IFLNK) | ||
+#define S_IFLNK 0 | ||
+#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) | ||
+#endif | ||
+ | ||
+#if !defined(S_IFSOCK) | ||
+#define S_IFSOCK 0 | ||
+#define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) | ||
+#endif | ||
+ | ||
#define ENABLE_CONDITIONALS | ||
|
||
#ifndef MAGIC | ||
-- | ||
2.29.2.windows.2 | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.