Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4171369

unzip will mask off execute bit off of files/directories in jar file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      If you inflate a 1.2 jar using the jar command, it sets the directory
      permissions on Unix as follows:

      drwxrwxr-x 2 rosanna staff 113 Sep 3 22:58 META-INF/
      drwxrwxr-x 3 rosanna staff 108 Sep 3 22:58 javax/

      However, if you inflate the same jar using 'unzip', you get

      drw-rw-r-- 2 rosanna staff 113 Aug 7 15:10 META-INF/
      drwxrwxr-x 3 rosanna staff 108 Sep 3 22:57 javax/

      The 'x' bit on the META-INF is not set. Is this as expected, or
      is there some information missing in the ZIP entry for the META-INF
      directory that prevents unzip from making the directory accessible
      when inflated?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rleesunw Rosanna Lee (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: