<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: UNZIP does not honor default protection ACL (a very old version does) in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482517#M17134</link>
    <description>&lt;!--!*#--&gt;&amp;gt; UnZip:  Zipfile Extract v5.0 of 21 August 1992; [...]&lt;BR /&gt;&lt;BR /&gt;Yow.  Was I even _born_ in 1992?  (I suppose&lt;BR /&gt;so, but I wasn't looking at Info-ZIP code&lt;BR /&gt;until about '04.  I don't have anything older&lt;BR /&gt;than 5.51 around here.)&lt;BR /&gt;&lt;BR /&gt;alp $ unzip6l -h&lt;BR /&gt;[...]&lt;BR /&gt;  -X  restore owner/ACL protection info      -V  retain VMS version numbers&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;By default, UnZip (6.0) does not restore&lt;BR /&gt;owner or ACL data.  Perhaps a seriously old&lt;BR /&gt;version did. If "unzip -X" fails to satisfy,&lt;BR /&gt;then please re-complain.</description>
    <pubDate>Wed, 19 Aug 2009 15:22:34 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-08-19T15:22:34Z</dc:date>
    <item>
      <title>UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482516#M17133</link>
      <description>Hoping Mr. Schweda can give me some insight on this problem...&lt;BR /&gt;&lt;BR /&gt;A very old version of UNZIP honored the default protection ACL on the default directory.  I installed a newer version and it doesn't seem to honor the ACL anymore.  This behavior may have changed a while back (not just in the current version) since the old version we were running was from 1994.&lt;BR /&gt;&lt;BR /&gt;Attached is a log file of my experiment.  I even changed the default protection ACL just to make sure the old version was really using the ACL and it did.  The new version seems to ignore it.  Please let me know if I'm missing something completely.  I'm known to do that.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2009 14:41:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482516#M17133</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-08-19T14:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482517#M17134</link>
      <description>&lt;!--!*#--&gt;&amp;gt; UnZip:  Zipfile Extract v5.0 of 21 August 1992; [...]&lt;BR /&gt;&lt;BR /&gt;Yow.  Was I even _born_ in 1992?  (I suppose&lt;BR /&gt;so, but I wasn't looking at Info-ZIP code&lt;BR /&gt;until about '04.  I don't have anything older&lt;BR /&gt;than 5.51 around here.)&lt;BR /&gt;&lt;BR /&gt;alp $ unzip6l -h&lt;BR /&gt;[...]&lt;BR /&gt;  -X  restore owner/ACL protection info      -V  retain VMS version numbers&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;By default, UnZip (6.0) does not restore&lt;BR /&gt;owner or ACL data.  Perhaps a seriously old&lt;BR /&gt;version did. If "unzip -X" fails to satisfy,&lt;BR /&gt;then please re-complain.</description>
      <pubDate>Wed, 19 Aug 2009 15:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482517#M17134</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-19T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482518#M17135</link>
      <description>&lt;!--!*#--&gt;Perhaps the real complaint is now sinking&lt;BR /&gt;into my (feeble) brain.&lt;BR /&gt;&lt;BR /&gt;I don't know what the old one did, but when a&lt;BR /&gt;modern UnZip extracts a file, it will create&lt;BR /&gt;the thing, and then set its protections&lt;BR /&gt;according to the archived protection info.&lt;BR /&gt;If the OS doesn't interfere, then I know of&lt;BR /&gt;nothing in the UnZip code which would care&lt;BR /&gt;what the local directory ACL might be.&lt;BR /&gt;&lt;BR /&gt;As I was just explaining to an HP-UX user, we&lt;BR /&gt;have had some discussion recently about&lt;BR /&gt;adding some UnZip option(s) to allow better&lt;BR /&gt;permission/protection control when extracting&lt;BR /&gt;files, but so far it's only talk.  "-X" does&lt;BR /&gt;allow a little control, but I know of no way&lt;BR /&gt;to stop UnZip from trying to restore the&lt;BR /&gt;original protections on an extracted file.&lt;BR /&gt;&lt;BR /&gt;And, if it's now better at restoring those&lt;BR /&gt;original protections, then this must be an&lt;BR /&gt;improvement, no?</description>
      <pubDate>Wed, 19 Aug 2009 15:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482518#M17135</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-19T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482519#M17136</link>
      <description>I did test the -X switch and on both the old UnZip and new UnZip the results were the same whether I used -X or not.  The old version uses the OS security settings, the new version applies the security settings from the zipped file.  -X would seem to be the default behavior on the modern UnZip.  Is there a way to negate this?&lt;BR /&gt;&lt;BR /&gt;Thank you for your explanation thus far.&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Aug 2009 16:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482519#M17136</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-08-19T16:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482520#M17137</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The old version uses the OS security&lt;BR /&gt;&amp;gt; settings, the new version applies the&lt;BR /&gt;&amp;gt; security settings from the zipped file.&lt;BR /&gt;&lt;BR /&gt;Perhaps that 1992 UnZip didn't know how to&lt;BR /&gt;set the protection on an extracted file.  Or,&lt;BR /&gt;if you're using a newer Zip (on VMS, with&lt;BR /&gt;"-V"), then the very old UnZip may understand&lt;BR /&gt;only the old "IM" extra field, not the modern&lt;BR /&gt;(1997?) "PK" extra field, used to store the&lt;BR /&gt;VMS attributes.  (I don't see enough "zip -v"&lt;BR /&gt;info to know what made these archives.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; -X would seem to be the default behavior on&lt;BR /&gt;&amp;gt; the modern UnZip.&lt;BR /&gt;&lt;BR /&gt;Not exactly.  With "-X", UnZip tries to&lt;BR /&gt;restore ownership and ACLs.  By default, it&lt;BR /&gt;_always_ tries to restore the original SOGW&lt;BR /&gt;protections.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there a way to negate this?&lt;BR /&gt;&lt;BR /&gt;Not in UnZip 6.0.  If you'd like to try&lt;BR /&gt;living dangerously, you could slap these onto&lt;BR /&gt;an UnZip 6.0 source kit:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://antinode.info/ftp/info-zip/unzip60/minusx/unzip.c" target="_blank"&gt;http://antinode.info/ftp/info-zip/unzip60/minusx/unzip.c&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://antinode.info/ftp/info-zip/unzip60/minusx/unzvers.h" target="_blank"&gt;http://antinode.info/ftp/info-zip/unzip60/minusx/unzvers.h&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://antinode.info/ftp/info-zip/unzip60/minusx/vms/vms.c" target="_blank"&gt;http://antinode.info/ftp/info-zip/unzip60/minusx/vms/vms.c&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Re-build, and then use "--X" to inhibit the&lt;BR /&gt;setting of any original protection values.&lt;BR /&gt;&lt;BR /&gt;Default: Restore SOGW protections.&lt;BR /&gt;-X: Restore SOGW protections, owner, ACLs.&lt;BR /&gt;--X: Restore no protections.&lt;BR /&gt;&lt;BR /&gt;These changes are unofficial, not well&lt;BR /&gt;tested, VMS-only, and not at all documented,&lt;BR /&gt;and I will deny everything under oath.&lt;BR /&gt;&lt;BR /&gt;If anything like this were to get into the&lt;BR /&gt;next UnZip version, then I'd expect different&lt;BR /&gt;(better) command-line options, perhaps with&lt;BR /&gt;separate control over ownership.</description>
      <pubDate>Thu, 20 Aug 2009 01:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482520#M17137</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-20T01:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482521#M17138</link>
      <description>Amongst other things I like about ZIP/UNZIP is platform-independency. The ability to handle platform speciialities in some way is (at least for me) a requirement. If my target system cannot handle ACL's that are stored on the source system, it renders the zipfile unusable.&lt;BR /&gt;I agree though, that handling should be consistent, or otherwise be documented.</description>
      <pubDate>Thu, 20 Aug 2009 10:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482521#M17138</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2009-08-20T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482522#M17139</link>
      <description>Steven, I built a beta UnZip with those source code changes you provided and...&lt;BR /&gt;&lt;BR /&gt;...you're my hero!!!&lt;BR /&gt;&lt;BR /&gt;Worked like a charm! I'll be doing more testing but it looks great so far.&lt;BR /&gt;&lt;BR /&gt;Attached is the log of my test.&lt;BR /&gt;&lt;BR /&gt;Thank you for your clarification on the "-X" and for the "--X" changes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Aug 2009 11:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482522#M17139</guid>
      <dc:creator>EdgarZamora_1</dc:creator>
      <dc:date>2009-08-20T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: UNZIP does not honor default protection ACL (a very old version does)</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482523#M17140</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] If my target system cannot handle&lt;BR /&gt;&amp;gt; ACL's that are stored on the source system,&lt;BR /&gt;&amp;gt; it renders the zipfile unusable. [...]&lt;BR /&gt;&lt;BR /&gt;So far, I believe that all ACL data are&lt;BR /&gt;archived in system-specific extra fields, so&lt;BR /&gt;UnZip will never try to use a foreign ACL.&lt;BR /&gt;(It's very good at ignoring mysterious extra&lt;BR /&gt;fields.)&lt;BR /&gt;&lt;BR /&gt;There is some hope for a cross-UNIX(-like)&lt;BR /&gt;ACL storage scheme, but I'd expect ACL&lt;BR /&gt;restoration to remain optional and&lt;BR /&gt;non-default.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ...you're my hero!!!&lt;BR /&gt;&lt;BR /&gt;So, you'll be using DELETE /ERASE on that&lt;BR /&gt;fossilized UnZip 5.0?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] more testing [...]&lt;BR /&gt;&lt;BR /&gt;Good idea.  Wake me when it catches fire.&lt;BR /&gt;I've restarted the feature discussion among&lt;BR /&gt;the Info-ZIP folks, so it's possible that&lt;BR /&gt;something similar will appear in a future&lt;BR /&gt;real UnZip kit.  (Hold your breath.)&lt;BR /&gt;Annoyingly, there's corresponding code&lt;BR /&gt;(chmod()/chown(), or whatever) in other&lt;BR /&gt;system-specific modules, too, so, even&lt;BR /&gt;ignoring the command-line complications, it's&lt;BR /&gt;not a trivial change to make properly.</description>
      <pubDate>Thu, 20 Aug 2009 14:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/unzip-does-not-honor-default-protection-acl-a-very-old-version/m-p/4482523#M17140</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-20T14:21:55Z</dc:date>
    </item>
  </channel>
</rss>

