Integrated: 8280357: user.home = "?" when running with systemd DynamicUser=true
Roger Riggs
rriggs at openjdk.java.net
Thu Feb 24 20:16:07 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.
This pull request has now been integrated.
Changeset: bf19fc65
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/bf19fc65c71cba8cb4383d714fe8993acd01be0a
Stats: 10 lines in 1 file changed: 8 ins; 0 del; 2 mod
8280357: user.home = "?" when running with systemd DynamicUser=true
Reviewed-by: naoto, alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/7534
More information about the core-libs-dev
mailing list