RFR: 8280357: user.home = "?" when running with systemd DynamicUser=true
Roger Riggs
rriggs at openjdk.java.net
Wed Feb 23 19:45:55 UTC 2022
On Fri, 18 Feb 2022 15:29:34 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> In some Linux configurations, the Linux home directory provided by getpwent is not usable.
> The value of the system property `user.home` should fallback to the value of $HOME
> if getpwent.user_home is null or less that 2 characters long. "/" is not a valid home directory name.
>
> If $HOME is undefined or empty, the value of the getpwent.user_home is retained.
>
> There are more details in the Jira issue: https://bugs.openjdk.java.net/browse/JDK-8280357
>
> The fix has been tested manually on Ubuntu 20.0.4 using the suggested systemd command line and variations.
The CSR has been approved, please review the PR and the Release note: https://bugs.openjdk.java.net/browse/JDK-8282101
-------------
PR: https://git.openjdk.java.net/jdk/pull/7534
More information about the core-libs-dev
mailing list