From patchwork Tue Nov 24 15:11:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Nieder X-Patchwork-Id: 62463 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAOExvH0011830 for ; Tue, 24 Nov 2009 14:59:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933133AbZKXO7u (ORCPT ); Tue, 24 Nov 2009 09:59:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757782AbZKXO7u (ORCPT ); Tue, 24 Nov 2009 09:59:50 -0500 Received: from mail-yw0-f182.google.com ([209.85.211.182]:41929 "EHLO mail-yw0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757567AbZKXO7t (ORCPT ); Tue, 24 Nov 2009 09:59:49 -0500 Received: by ywh12 with SMTP id 12so6443038ywh.21 for ; Tue, 24 Nov 2009 06:59:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=ZSEBORe9K9sg+pUnTCeV1zwBv4JOuFeuZvudM0XCuAg=; b=mwgrzhQJ5YH46ImcraNjdj/8daY3Byg8nR/YduIBV9dRTcPjiJHEt0AwNhwLdQy6SL goQM46KDv1O0oAsKPf9cs4N8USUhrHNuyDJaZCTOSrU0DEe/PldeJn52Zajg+76uZX9T cPWzr941FflM+M/EkN2CrG4jWXEqDogUF+0Hw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Chvowm5DmBF74TsQ6KJUBMDi3lPF7eRd65t8GjEi5Fl4y6/AH474zxf/7pGae/kQ7c /PPSS/9KHBTVRsewnK/NvlFby9Jgf0iSKHPxXSWxDkuqIkQhNnSB72W5Wlv7LfaX7cip 4HCSsNBk1pqNjy02oM30IFFXtyMu2Q7/AQ+QA= Received: by 10.100.245.11 with SMTP id s11mr4546992anh.55.1259074795649; Tue, 24 Nov 2009 06:59:55 -0800 (PST) Received: from progeny.tock (c-98-212-3-231.hsd1.il.comcast.net [98.212.3.231]) by mx.google.com with ESMTPS id 35sm2415363yxh.15.2009.11.24.06.59.54 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Nov 2009 06:59:55 -0800 (PST) Date: Tue, 24 Nov 2009 09:11:37 -0600 From: Jonathan Nieder To: Michal Marek Cc: linux-kbuild@vger.kernel.org, maximilian attems , Sam Ravnborg , Frans Pop Subject: [PATCH 1/3] scripts/package: tar-pkg: use tar --owner=root Message-ID: <20091124151137.GB14731@progeny.tock> References: <20091014064622.GA8711@progeny.tock> <20091014071627.GA6256@merkur.ravnborg.org> <200910141159.03799.elendil@planet.nl> <20091014110331.GZ28231@baikonur.stro.at> <20091015133139.GA6718@progeny.tock> <20091015133532.GB6718@progeny.tock> <4B0BC306.9010009@suse.cz> <20091124150904.GA14731@progeny.tock> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091124150904.GA14731@progeny.tock> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/package/buildtar b/scripts/package/buildtar index b1fd48d..51b2aa0 100644 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar @@ -101,7 +101,11 @@ esac # ( cd "${tmpdir}" - tar cf - . | ${compress} > "${tarball}${file_ext}" + opts= + if tar --owner=root --group=root --help >/dev/null 2>&1; then + opts="--owner=root --group=root" + fi + tar cf - . $opts | ${compress} > "${tarball}${file_ext}" ) echo "Tarball successfully created in ${tarball}${file_ext}"