#7837 Replace os.getenv('HOME') with os.path.expanduser
Closed: fixed by rcritten. Opened by cheimes.

On several occasions IPA uses HOME env var. The env var may not be available. Some platforms use a different environment variable, too. The correct way to get the home directory of the current user is os.path.expanduser


See https://pagure.io/389-ds-base/issue/50152

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2755
- Issue assigned to cheimes
- Issue tagged with: bug

master:

  • 19b1eb1f5a727640b2e6ee2732bc78c0bd5812da Use expanduser instead of HOME env var
  • 2ba969da07f1120bc392603ec7bf4bd2a9f967a4 Add workaround for lib389 HOME bug

ipa-4-7:

  • b8522da3606c70230fd0156a357c991820fcede8 Use expanduser instead of HOME env var

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata