From patchwork Fri Jul 28 15:26:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9869081 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C28A6037D for ; Fri, 28 Jul 2017 15:30:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EABE728898 for ; Fri, 28 Jul 2017 15:30:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF9FF288D2; Fri, 28 Jul 2017 15:30:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 85F1928898 for ; Fri, 28 Jul 2017 15:30:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db7C6-0005Eb-3L; Fri, 28 Jul 2017 15:28:50 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db7C4-0005DU-OW for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 15:28:48 +0000 Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id 2E/24-01995-0385B795; Fri, 28 Jul 2017 15:28:48 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRWlGSWpSXmKPExsXitHRDpK5BRHW kwa4uZovvWyYzOTB6HP5whSWAMYo1My8pvyKBNeNw+w/WgpesFZfu9LI1MH5i6WLk5JAQ8Jd4 tuM3E4jNJqAjcXHuTrYuRg4OEQEVidt7DUDCzAIhEq3HvrCD2MICvhKN2xeDlbMIqEpMOdbOC GLzClhKrOt6ADVST+LtxBdgcU4BK4nGl/NYQWwhoJp903qYIOoFJU7OfMICMV9TonX7b3YIW1 6ieetsZoh6RYn+eQ/YJjDyzULSMgtJyywkLQsYmVcxahSnFpWlFukaWuolFWWmZ5TkJmbm6Bo aGOvlphYXJ6an5iQmFesl5+duYgSGWj0DA+MOxt/H/Q4xSnIwKYny3jSrjhTiS8pPqcxILM6I LyrNSS0+xCjDwaEkwdseBpQTLEpNT61Iy8wBBj1MWoKDR0mEVxokzVtckJhbnJkOkTrFaMzR9 GHLFyaOVxP+f2MSYsnLz0uVEud1ACkVACnNKM2DGwSLxkuMslLCvIwMDAxCPAWpRbmZJajyrx jFORiVhHlXgUzhycwrgdv3CugUJqBTJjZVgpxSkoiQkmpgnP1+dW3aOe53ClxSzFdV/7rdS85 77Lqn/s2aeTbvCvWSVGYWv7dN98n2+fWo2nL1pZTaDIVtjmGXl2lNidJg0jnkIOti4D/h+JfF l1efasoMuW6w6NPS13KaGtXft1ZrtgSU9H05a/RvJfu6t1bvqvkCFLyPRffem/XPqchu9ospP UmxE9j/KLEUZyQaajEXFScCAPeGw5vBAgAA X-Env-Sender: prvs=375b3df75=roger.pau@citrix.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1501255725!52135762!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30609 invoked from network); 28 Jul 2017 15:28:47 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 15:28:47 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="433444978" From: Roger Pau Monne To: Date: Fri, 28 Jul 2017 16:26:28 +0100 Message-ID: <20170728152637.20301-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) In-Reply-To: <20170728152637.20301-1-roger.pau@citrix.com> References: <20170728152637.20301-1-roger.pau@citrix.com> MIME-Version: 1.0 Cc: Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH OSSTEST 02/11] ts-freebsd-host-install: fix image permissions X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Make sure images copied to the tftp path have the right permissions, so use dd instead of cp, which will obviously not preserve the original permissions. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- ts-freebsd-host-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts-freebsd-host-install b/ts-freebsd-host-install index 321763b0..483b9aec 100755 --- a/ts-freebsd-host-install +++ b/ts-freebsd-host-install @@ -76,7 +76,8 @@ targetpath=$4 cd $basedir mkdir -p `dirname $sharedpath` if [ ! -f $sharedpath ]; then - cp $imagepath $sharedpath.tmp + rm $sharedpath.tmp + dd if=$imagepath of=$sharedpath.tmp mv $sharedpath.tmp $sharedpath fi rm -f $targetpath