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

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