ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36464] - Wrong directory permissions from "tar" task
Date Mon, 06 Mar 2006 15:52:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36464>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36464





------- Additional Comments From murthy_gandikota@yahoo.com  2006-03-06 15:52 -------
The tar file created does not preserve file permissions. From ant script 
<chmod perm="ugo+x" dir="${ac}/util" type="file" includes="**" />
 
 <tar tarfile="${tarname}" compression="gzip" basedir="${a}/package"
longfile="warn"/>

The resulting tar file has 644 permissions for the files under util
subdirectory. They should have been 755 or basically executable.

Thanks

If you want to inform me the status please send email to
murthy_gandikota@yahoo.com(In reply to comment #0)
> Task: "tar"
> 
> The "dirmode" attribute settings in the nested "tarfileset" element don't work.
> I seems that in the built tar file the "order" of files and directories is not 
> correct. 
> If a directory appears after some contained file, then the directory permission 
> is 777 without respect to the dirmode setting.
> 
> Example: tar file containing 1 directory "aaa" and 1 file "b" contained 
> into "aaa".
> 
> If the order in the tar file is the following:
> /aaa/b 600
> /aaa   700
> the result from the extraction will be wrong: "aaa" with 777 permissions!
> 
> In the cases when the directory appears before contained files, we are lucky. 
> In fact, if the order of the above example is opposite:
> /aaa   700
> /aaa/b 600
> the result will be correct.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message