Campbell Barton
1b0cef86fa
Fix UNIX crash on startup when HOME isn't set
...
Regression in [0] which re-introduced #2931 .
Accessing environment variables must always null check the result.
Resolve by checking the result as well as replacing $HOME
access with a function that falls back to `passwd::pw_dir`.
Also add code-comments to to clarify the current behavior.
[0]: b308b360eb
2025-01-02 14:46:55 +11:00
..
2024-12-31 18:23:25 +01:00
2024-12-26 20:47:53 +01:00
2024-03-18 15:04:12 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2025-01-02 14:46:55 +11:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2024-12-25 17:40:25 +01:00
2025-01-01 18:20:58 +02:00
2024-09-20 13:14:57 +10:00
2024-10-04 11:33:21 +02:00
2024-12-31 18:23:25 +01:00
2024-12-31 15:13:56 -05:00
2025-01-01 20:15:14 +01:00
2024-12-31 18:23:25 +01:00
2024-12-25 19:46:31 +01:00
2024-12-31 22:16:29 +01:00
2024-12-31 18:23:25 +01:00
2024-12-23 20:08:37 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2024-12-28 01:44:49 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2025-01-01 20:21:30 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2025-01-01 11:11:49 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2024-12-31 18:23:25 +01:00
2024-12-02 21:26:15 +01:00