ForceCommand and ~/.ssh/rc
Damien Miller
djm at mindrot.org
Wed Mar 26 13:59:48 EST 2008
On Tue, 25 Mar 2008, Mikhail Terekhov wrote:
I just noticed this myself, fix committed - thanks.
> I'm a little confused about version number. Your patch shows session.c
> rev.1.364 but I've got
> rev. 1.231 from CVS. Anyway, it looks like rev.1.231 did the required
> changes. Unfortunately
> there is a typo in this revision that reverses the effect. The
> following patch fixes that.
>
> *** session.c 25 Mar 2008 09:47:50 -0400 1.231
> --- session.c 25 Mar 2008 11:56:24 -0400
> ***************
> *** 879,885 ****
> s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;
>
> /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */
> ! if (!s->is_subsystem && options.adm_forced_command != NULL &&
> (stat(_PATH_SSH_USER_RC, &st) >= 0)) {
> snprintf(cmd, sizeof cmd, "%s -c '%s %s'",
> shell, _PATH_BSHELL, _PATH_SSH_USER_RC);
> --- 879,885 ----
> s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;
>
> /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */
> ! if (!s->is_subsystem && options.adm_forced_command == NULL &&
> (stat(_PATH_SSH_USER_RC, &st) >= 0)) {
> snprintf(cmd, sizeof cmd, "%s -c '%s %s'",
> shell, _PATH_BSHELL, _PATH_SSH_USER_RC);
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
>
More information about the openssh-unix-dev
mailing list