Displaying 1 result from an estimated 1 matches for "local_env_mods".
2011 Jan 07
1
[RFC/PATCH] ssh: config directive to modify the local environment
...Mod },
{ NULL, oBadOption }
};
@@ -325,6 +326,45 @@ clear_forwardings(Options *options)
}
/*
+ * Adds a command to modify the local environment. Never returns if there is an
+ * error.
+ */
+
+void
+add_local_env_mod(Options *options, const EnvMod *newmod)
+{
+ EnvMod *mod;
+
+ options->local_env_mods = xrealloc(options->local_env_mods,
+ options->num_local_env_mods + 1,
+ sizeof(*options->local_env_mods));
+ mod = &options->local_env_mods[options->num_local_env_mods++];
+
+ mod->name = newmod->name;
+ mod->operation = newmod->operation;
+ mod->value = n...