tcsh-6.15.00-closem.patch removed
This patch was never accepted by upstream since upstream does not like the solution: http://mx.gw.com/pipermail/tcsh-bugs/2016-April/001031.html The issue solved by this patch has been tested on Fedora 23, but reproduction was not successful. The package 'nss_ldap' is now obsolote (has been retired) and is no longer part of Fedora. It was superseded by 'nss-pam-ldapd' and 'sssd'. The issue has been most likely mitigated with the new identity management used in Fedora (FreeIPA/SSSD). In case the issue will re-appear, we will need to find work with upstream to find a solution which they would be willing to accept.
This commit is contained in:
parent
50cf2da56c
commit
d997da94d3
@ -1,42 +0,0 @@
|
|||||||
From fbf64f9d9addb60153732298ec7e9bf592831bf2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Miloslav Trmac <mitr@fedoraproject.org>
|
|
||||||
Date: Wed, 27 Aug 2014 13:29:02 +0200
|
|
||||||
Subject: [PATCH 01/14] Do not close sockets
|
|
||||||
|
|
||||||
orig dist-git commit: f02674e96a7888a7322611b45f6b63a1f5db0fef
|
|
||||||
---
|
|
||||||
sh.misc.c | 11 +++++++++++
|
|
||||||
1 file changed, 11 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/sh.misc.c b/sh.misc.c
|
|
||||||
index 08ec30d..08d110f 100644
|
|
||||||
--- a/sh.misc.c
|
|
||||||
+++ b/sh.misc.c
|
|
||||||
@@ -257,6 +257,7 @@ void
|
|
||||||
closem(void)
|
|
||||||
{
|
|
||||||
int f, num_files;
|
|
||||||
+ struct stat st;
|
|
||||||
|
|
||||||
#ifdef NLS_BUGS
|
|
||||||
#ifdef NLS_CATALOGS
|
|
||||||
@@ -274,6 +275,16 @@ closem(void)
|
|
||||||
#ifdef MALLOC_TRACE
|
|
||||||
&& f != 25
|
|
||||||
#endif /* MALLOC_TRACE */
|
|
||||||
+#ifdef S_ISSOCK
|
|
||||||
+ /* NSS modules (e.g. Linux nss_ldap) might keep sockets open.
|
|
||||||
+ * If we close such a socket, both the NSS module and tcsh think
|
|
||||||
+ * they "own" the descriptor.
|
|
||||||
+ *
|
|
||||||
+ * Not closing sockets does not make the cleanup use of closem()
|
|
||||||
+ * less reliable because tcsh never creates sockets.
|
|
||||||
+ */
|
|
||||||
+ && fstat(f, &st) == 0 && !S_ISSOCK(st.st_mode)
|
|
||||||
+#endif
|
|
||||||
)
|
|
||||||
{
|
|
||||||
xclose(f);
|
|
||||||
--
|
|
||||||
1.9.3
|
|
||||||
|
|
@ -32,7 +32,6 @@ Source: ftp://ftp.astron.com/pub/tcsh/%{name}-%{version}.tar.gz
|
|||||||
|
|
||||||
# Downstream patches -- these should be always included when doing rebase:
|
# Downstream patches -- these should be always included when doing rebase:
|
||||||
# ------------------
|
# ------------------
|
||||||
Patch1: tcsh-6.15.00-closem.patch
|
|
||||||
Patch3: tcsh-6.14.00-unprintable.patch
|
Patch3: tcsh-6.14.00-unprintable.patch
|
||||||
Patch4: tcsh-6.15.00-hist-sub.patch
|
Patch4: tcsh-6.15.00-hist-sub.patch
|
||||||
Patch8: tcsh-6.14.00-syntax.patch
|
Patch8: tcsh-6.14.00-syntax.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user