Unix results have near identical regressions using the stackoverflow
<https://stackoverflow.com/questions/73428286> snippet, but for
"/opt/MyApp" (Linux) and "/Applications/MyApp.app" (Mac)

*Ubuntu 22.04:*

2.8 and lower:

   - Files copied from $HOME/Desktop to /opt/MyApp *inherit target
   permissions*.  For example, if you're using copyDirectory() to deploy
   files /opt/, they will generally be owned by the root user.

2.9 and higher:

   - Files copied from $HOME/Desktop to /opt/MyApp *keep source permissions*.
   For example, if you're using copyDirectory() to deploy files /opt/, they
   will generally be maintained (in the case of the snippet, owned by the
   *$USER:$USER*).

*MacOS 13.0:*
2.8 and lower:

   - Files copied from $HOME/Desktop to /opt/MyApp *inherit target
   permissions*.  For example, if you're using copyDirectory() to deploy
   files /Applications/, they will generally be owned by *"root:admin"*.

2.9 and higher:

   - Files copied from $HOME/Desktop to /Applications/MyApp.app *keep
   source permissions* For example, if you're using copyDirectory() to
   deploy files /Applications/, they will generally be maintained (in the case
   of the snippet, owned by the "*root:staff*").

Note:

The permissions between Mac and Linux have slightly different behaviors due
to how Java is handling the creation of the "test.txt" file when using
"sudo".  Linux creates them with user permissions, Mac does not.
Regardless, in both cases, the regression seems to behave the same.
Permission inheritance is lost in both instances.

Should I begin writing a patch to restore the old behavior?

Reply via email to