tcsh-6.19.00-028-fix-wrong-ifdef.patch

> Fix wrong ifdef (Corinna Vinschen)
This commit is contained in:
David Kaspar [Dee'Kej] 2016-05-03 17:08:55 +02:00
parent a88e18c024
commit 9ccc6616d1
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 4c088bc70c83a89b213e5d803217d4bfa92bfbf5 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Sat, 16 Apr 2016 14:08:14 +0000
Subject: [PATCH] Fix wrong ifdef (Corinna Vinschen)
---
sh.file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sh.file.c b/sh.file.c
index 3989d8a..a1d766d 100644
--- a/sh.file.c
+++ b/sh.file.c
@@ -564,7 +564,7 @@ again: /* search for matches */
}
if (looking_for_lognames) {
-#ifndef HAVE_GETPWENT
+#ifdef HAVE_GETPWENT
(void) endpwent();
#endif
} else
--
2.5.5

View File

@ -56,6 +56,7 @@ Patch024: tcsh-6.19.00-024-use-sysmalloc.patch
Patch025: tcsh-6.19.00-025-more-generous-ROUNDUP-_LP64.patch
Patch026: tcsh-6.19.00-026-quote-backslashes-properly.patch
Patch027: tcsh-6.19.00-027-fix-memory-leak-when-cdpath-fails.patch
Patch028: tcsh-6.19.00-028-fix-wrong-ifdef.patch
# Downstream patches -- these should be always included when doing rebase:
@ -204,6 +205,7 @@ fi
tcsh-6.19.00-025-more-generous-ROUNDUP-_LP64.patch
tcsh-6.19.00-026-quote-backslashes-properly.patch
tcsh-6.19.00-027-fix-memory-leak-when-cdpath-fails.patch
tcsh-6.19.00-028-fix-wrong-ifdef.patch
* Thu Apr 21 2016 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 6.19.00-6
- Drop tcsh-6.15.00-closem.patch - issue not reproducible, patch not accepted by upstream