Closed GoogleCodeExporter closed 9 years ago
Just downloaded the current version, and all files are executable for me.
Original comment by qsieb...@gmail.com
on 18 Dec 2012 at 1:32
The same problem with 5.3.0.
The version 5.2.1 is OK, both 5.2.0 and 5.3.0 are missing execute permissions
for *.sh.
# ls -l
total 184672
-rw-r--r-- 1 root root 96735466 Mar 30 2012 ontopia-5.2.1-20120330.zip
-rw-r--r-- 1 root root 92166897 Aug 1 22:23 ontopia-5.3.0.zip
# unzip ontopia-5.2.1-20120330.zip
# unzip ontopia-5.3.0.zip
# rm ontopia-5.2.1-20120330.zip ontopia-5.3.0.zip
# ls -l ontopia-5.2.1/apache-tomcat/bin/startup.sh
-rwxr-xr-x 1 root root 2023 Mar 30 2012
ontopia-5.2.1/apache-tomcat/bin/startup.sh
# ls -l apache-tomcat/bin/startup.sh
-rw-r--r-- 1 root root 2023 Aug 1 21:42 apache-tomcat/bin/startup.sh
$ find /opt/ontopia/ -name "*.sh" -exec ls -l {} \;
-rw-r--r-- 1 ontopia ontopia 48 Aug 7 01:46 /opt/ontopia/bin/vizdesktop.sh
-rw-r--r-- 1 ontopia ontopia 11117 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/catalina.sh
-rw-r--r-- 1 ontopia ontopia 7513 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/daemon.sh
-rw-r--r-- 1 ontopia ontopia 1689 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/digest.sh
-rw-r--r-- 1 ontopia ontopia 2023 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/startup.sh
-rw-r--r-- 1 ontopia ontopia 1632 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/version.sh
-rw-r--r-- 1 ontopia ontopia 1628 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/shutdown.sh
-rw-r--r-- 1 ontopia ontopia 4236 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/setclasspath.sh
-rw-r--r-- 1 ontopia ontopia 3472 Aug 7 01:46
/opt/ontopia/apache-tomcat/bin/tool-wrapper.sh
Probably all these files should have -rwxr-xr-x.
Original comment by ladislav...@gmail.com
on 7 Aug 2013 at 1:54
Testing this locally is giving me mixed results:
* When unpacked with OSX's Archive utility the permissions are applied as expected
* When unpacked with unzip on the commandline, the permissions are ignored.
* For Windows it's not really a problem because the bat files do not require an executable flag in order to work
Googleing for this leads me to the following: Generally speaking, zip files *do
not* store permissions [1]. For some (to me unknown) reason it works correctly
on OSX.
So it comes down to this: unless we decide to publish the distribution as a Tar
package, permissions might be broken on extraction.
[1]
http://stackoverflow.com/questions/10735297/maintain-file-and-folder-permissions
-inside-archives
Original comment by qsieb...@gmail.com
on 7 Aug 2013 at 9:06
Original issue reported on code.google.com by
ladislav...@gmail.com
on 10 Dec 2012 at 3:27