aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2001-01-21 05:45:27 +0000
committerBrian Feldman <green@FreeBSD.org>2001-01-21 05:45:27 +0000
commit926581ede375820822b7428e0f1d34df316ae24c (patch)
treeecdd0f72c1200798926b549a4fc8f6a02a7e93f6 /crypto
parent11f3349f345bad12a2d5e3ba30711a1979449752 (diff)
downloadsrc-926581ede375820822b7428e0f1d34df316ae24c.tar.gz
src-926581ede375820822b7428e0f1d34df316ae24c.zip
Actually propagate back to the rest of the application that a command
was specified when using -t mode with the SSH client. Submitted by: Dima Dorfman <dima@unixfreak.org>
Notes
Notes: svn path=/head/; revision=71317
Diffstat (limited to 'crypto')
-rw-r--r--crypto/openssh/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/session.c b/crypto/openssh/session.c
index 887195badc33..df1a241b1a78 100644
--- a/crypto/openssh/session.c
+++ b/crypto/openssh/session.c
@@ -705,7 +705,7 @@ do_login(Session *s, const char *command)
/* Done if .hushlogin exists or a command given. */
if (command != NULL)
- return;
+ return newcommand;
snprintf(buf, sizeof(buf), "%.200s/.hushlogin", pw->pw_dir);
#ifdef HAVE_LOGIN_CAP
lc = login_getpwclass(pw);