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 6492] - Create Zip files that store permissions (zipfileset)
Date Tue, 05 Mar 2002 09:54:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6492>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6492

Create Zip files that store permissions (zipfileset)

bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |



------- Additional Comments From bodewig@apache.org  2002-03-05 09:54 -------
But look at the documentation for org.apache.tools.zip.ZipEntry, which is
what Ant uses. 8-)

Inside Zip.java there is code that looks like this

        // this is 040775 | MS-DOS directory flag in reverse byte order
        ze.setExternalAttributes(0x41FD0010L);

i.e. Ant stores the Unix permissions for directories (it ensures that the
execute bit has been set) already inside the external attributes.

The mechanism may not be standardized as such, but Ant uses the same way to
store Unix permissions that InfoZip uses, which in turn is the base for all
Unix zip/unzip implementations I am aware of (and for OpenVMS and WinZip as
well).

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


Mime
View raw message