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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools
    • jar
    • sparc
    • solaris_2.6

      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?

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: