Blame SOURCES/mailx-12.5-globname-Invoke-wordexp-with-WRDE_NOCMD-CVE-2004-277.patch

568d9c
From 73fefa0c1ac70043ec84f2d8b8f9f683213f168d Mon Sep 17 00:00:00 2001
568d9c
From: Florian Weimer <fweimer@redhat.com>
568d9c
Date: Mon, 17 Nov 2014 13:11:32 +0100
568d9c
Subject: [PATCH 4/4] globname: Invoke wordexp with WRDE_NOCMD (CVE-2004-2771)
568d9c
568d9c
---
568d9c
 fio.c | 2 +-
568d9c
 1 file changed, 1 insertion(+), 1 deletion(-)
568d9c
568d9c
diff --git a/fio.c b/fio.c
568d9c
index 1529236..774a204 100644
568d9c
--- a/fio.c
568d9c
+++ b/fio.c
568d9c
@@ -497,7 +497,7 @@ globname(char *name)
568d9c
 	sigemptyset(&nset);
568d9c
 	sigaddset(&nset, SIGCHLD);
568d9c
 	sigprocmask(SIG_BLOCK, &nset, NULL);
568d9c
-	i = wordexp(name, &we, 0);
568d9c
+	i = wordexp(name, &we, WRDE_NOCMD);
568d9c
 	sigprocmask(SIG_UNBLOCK, &nset, NULL);
568d9c
 	switch (i) {
568d9c
 	case 0:
568d9c
-- 
568d9c
1.9.3
568d9c