Blame SOURCES/0008-Fix-CVE-2017-8386.patch

00409b
From 654dbd112ab7cbe0a162afaab645a971da62d433 Mon Sep 17 00:00:00 2001
00409b
From: Petr Stodulka <pstodulk@redhat.com>
00409b
Date: Wed, 17 May 2017 11:37:01 +0200
00409b
Subject: [PATCH] Fix CVE-2017-8386
00409b
00409b
See the commit 3ec804490 in upstream repository for more info.
00409b
---
00409b
 shell.c | 2 +-
00409b
 1 file changed, 1 insertion(+), 1 deletion(-)
00409b
00409b
diff --git a/shell.c b/shell.c
00409b
index 1429870..72ed0fa 100644
00409b
--- a/shell.c
00409b
+++ b/shell.c
00409b
@@ -13,7 +13,7 @@ static int do_generic_cmd(const char *me, char *arg)
00409b
 	const char *my_argv[4];
00409b
 
00409b
 	setup_path();
00409b
-	if (!arg || !(arg = sq_dequote(arg)))
00409b
+	if (!arg || !(arg = sq_dequote(arg)) || *arg == '-')
00409b
 		die("bad argument");
00409b
 	if (prefixcmp(me, "git-"))
00409b
 		die("bad command");
00409b
-- 
00409b
2.9.4
00409b