Skip to content

Dir.home returns LOGDIR env var instead of HOME or user.home #1556

@ledesma

Description

@ledesma

While searching for the reason why net/ssh didn't pick up my keys from my home folder, I noticed that Dir.home is pointing to the path defined in the LOGDIR evn variable.

In org.jruby.Rubydir.getHomeDirectoryPath() the order is

  1. LOGDIR
  2. HOME
  3. user.home

According to JRUBY-6295 in Jira it should be

  1. HOME
  2. user.home
  3. LOGDIR

(which makes much more sense).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions