2018-05-23 07:49:42 +02:00
|
|
|
diff --git i/session.c w/session.c
|
|
|
|
index 58826db1..658dd911 100644
|
|
|
|
--- i/session.c
|
|
|
|
+++ w/session.c
|
|
|
|
@@ -1053,6 +1053,10 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
|
2010-05-09 14:53:46 +02:00
|
|
|
if (getenv("TZ"))
|
|
|
|
child_set_env(&env, &envsize, "TZ", getenv("TZ"));
|
|
|
|
|
2018-05-23 07:49:42 +02:00
|
|
|
+ /* NixOS path to the glibc locale archive, to be set in the systemd job */
|
2010-05-09 14:53:46 +02:00
|
|
|
+ if (getenv("LOCALE_ARCHIVE"))
|
|
|
|
+ child_set_env(&env, &envsize, "LOCALE_ARCHIVE", getenv("LOCALE_ARCHIVE"));
|
|
|
|
+
|
2018-05-23 07:49:42 +02:00
|
|
|
/* Set custom environment options from pubkey authentication. */
|
|
|
|
if (options.permit_user_env) {
|
|
|
|
for (n = 0 ; n < auth_opts->nenv; n++) {
|