From f3123ae2323e8fa6c7c4e323191812d2e5e46b0d Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 10 Feb 2016 15:34:25 -0500 Subject: [PATCH] remove wildcard to extract kit tar file --- xCAT-server/lib/xcat/plugins/kit.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kit.pm b/xCAT-server/lib/xcat/plugins/kit.pm index c422de825..d9f32a853 100644 --- a/xCAT-server/lib/xcat/plugins/kit.pm +++ b/xCAT-server/lib/xcat/plugins/kit.pm @@ -1249,10 +1249,8 @@ sub addkit my %rsp; push@{ $rsp{data} }, "Extract Kit $kit to /tmp/tmpkit"; xCAT::MsgUtils->message( "I", \%rsp, $callback ); - $rc = system("tar jxvf $kit -C /tmp/tmpkit/ --wildcards */kit.conf"); - } else { - $rc = system("tar jxf $kit -C /tmp/tmpkit/ --wildcards */kit.conf"); } + $rc = system("tar jxvf $kit -C /tmp/tmpkit/"); opendir($dir,"/tmp/tmpkit/"); my @files = readdir($dir);