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?
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?
- duplicates
-
JDK-6194856 Zip Files lose ALL ownership and permissions of the files
-
- Closed
-