make/src/classes/build/tools/module/ModuleArchive.java

Print this page
rev 11064 : 8066766: The commands in the modular images are executable by the owner only
Summary: Also simplify the 'set executable' step of jspawnhelper in ImageBuilder.java
Reviewed-by: chegar

@@ -192,11 +192,11 @@
                             writeEntry(in, destFile(nativeDir(filename), filename));
                             break;
                         case CMDS:
                             Path path = destFile("bin", filename);
                             writeEntry(in, path);
-                            path.toFile().setExecutable(true);
+                            path.toFile().setExecutable(true, false);
                             break;
                         case CONFIGS:
                             writeEntry(in, destFile("conf", filename));
                             break;
                         default: