summaryrefslogtreecommitdiff
path: root/sys-apps/file/files/file-5.26-stdin-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/file/files/file-5.26-stdin-rpm.patch')
-rw-r--r--sys-apps/file/files/file-5.26-stdin-rpm.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/sys-apps/file/files/file-5.26-stdin-rpm.patch b/sys-apps/file/files/file-5.26-stdin-rpm.patch
deleted file mode 100644
index 7ba5072daf1..00000000000
--- a/sys-apps/file/files/file-5.26-stdin-rpm.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-http://mx.gw.com/pipermail/file/2016/001975.html
-
-From 11edb37a71851b5bcbd4e51ca6ad3dcbf57e9761 Mon Sep 17 00:00:00 2001
-From: Christos Zoulas <christos@zoulas.com>
-Date: Tue, 19 Apr 2016 20:51:54 +0000
-Subject: [PATCH] Revert: Don't close stdin...
-
----
- src/magic.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/magic.c b/src/magic.c
-index 46e4678..8cf6269 100644
---- a/src/magic.c
-+++ b/src/magic.c
-@@ -346,7 +346,7 @@ private void
- close_and_restore(const struct magic_set *ms, const char *name, int fd,
- const struct stat *sb)
- {
-- if (name == NULL)
-+ if (fd == STDIN_FILENO || name == NULL)
- return;
- (void) close(fd);
-
---
-2.7.4
-