Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 826F4D521 for ; Wed, 25 Jul 2012 19:39:22 +0000 (UTC) Received: (qmail 41019 invoked by uid 500); 25 Jul 2012 19:39:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 40880 invoked by uid 500); 25 Jul 2012 19:39:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 40872 invoked by uid 99); 25 Jul 2012 19:39:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 19:39:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rick.genter@gmail.com designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gh0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 19:39:12 +0000 Received: by ghrr14 with SMTP id r14so1132783ghr.4 for ; Wed, 25 Jul 2012 12:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/nFX5s2M++yKXKj2ATACg1uhwzUUTwykwQI0VaQcgNk=; b=G18lds6Mfp4hSt7QUD6MRXNz4c6zozEGyQlqhnQsGAM0ujbJybgWrHENUNuAx1aS+E VsihTsLFkw9G5SpPZepYaJfu+PwfIkNZCyALyF92o/jc3QWH4HAksH22QGuDixRnXcdr m9kAhnxjBUZAd/b0XGAPmf9Rqm65RAtXPmNEofRVoF64gp7jAsEMKA0SQil076gcevO2 IVxlnS/PSNM0hGHYyeuqnx1Xoh3XWxF2HnT2RC4AxU2RNWMeRrp3SCFzNHS4NvnSTBl7 qlHgoDcX5CpHD4tIp6MUFNkSH6zTre2VC8inj1nPWRq3LdSijcJcFtk+D0DrDpkTpaFy ws7A== Received: by 10.66.75.228 with SMTP id f4mr14948364paw.52.1343245131453; Wed, 25 Jul 2012 12:38:51 -0700 (PDT) Received: from [10.0.1.198] (c-24-23-158-214.hsd1.ca.comcast.net. [24.23.158.214]) by mx.google.com with ESMTPS id pi7sm14918972pbb.56.2012.07.25.12.38.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jul 2012 12:38:50 -0700 (PDT) Subject: Re: Problem with filemode Attribute of tarfileset Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Rick Genter In-Reply-To: Date: Wed, 25 Jul 2012 12:38:47 -0700 Cc: Rick Genter Content-Transfer-Encoding: quoted-printable Message-Id: <269E7FC2-136D-4754-BB1C-E9FE101B34D4@gmail.com> References: To: "Ant Users List" X-Mailer: Apple Mail (2.1084) On Jul 25, 2012, at 10:59 AM, Pepersack, Bob G wrote: > I'm using the tar task with tarfilesets to create tar files on Windows = 7. I'm using the filemode attribute of the tarfileset type to set the = UNIX permissions on the files contained by the tar. Then, I upload the = tars to our UNIX server and unzip them with this command: tar -xvf = mytarfile.tar >=20 > I want create -rwxrwxr-- permissions on my .ksh files using = filemode=3D"774", but they untar with -rwxr-xr-- . > For files other than .ksh, I want to create -rw-rw-r-- using = filemode=3D"664", but I get rw--r--r--. >=20 > If I set the second digit to zero, then I get the correct result: = -rw----r--. So turning on write permission for the group doesn't work, = but turning it off does work. I've even tried adding a dirmode = attribute set to 774 but it didn't help. I've also run my build in = verbose mode and debug mode, but there was no output regarding the UNIX = file permissions. >=20 > Here is the target for my tar: >=20 > > > > > > > > > > > > > >=20 > Thanks. >=20 What's your umask set to on the Unix system? -- Rick Genter rick.genter@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org