summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-04 23:20:18 +1100
committerDamien Miller <djm@mindrot.org>2001-02-04 23:20:18 +1100
commit33804263583e82fb7e6e36477fe63ebd14f15ecb (patch)
tree90d891bedf231b49acdd91f456d58a4142070bd6 /session.c
parent45cb2937bc8a74c1e1f7da3b35ad4319d3033baf (diff)
NB: big update - may break stuff. Please test!
- (djm) OpenBSD CVS sync: - markus@cvs.openbsd.org 2001/02/03 03:08:38 [auth-options.c auth-rh-rsa.c auth-rhosts.c auth.c canohost.c] [canohost.h servconf.c servconf.h session.c sshconnect1.c sshd.8] [sshd_config] make ReverseMappingCheck optional in sshd_config; ok djm@,dugsong@ - markus@cvs.openbsd.org 2001/02/03 03:19:51 [ssh.1 sshd.8 sshd_config] Skey is now called ChallengeResponse - markus@cvs.openbsd.org 2001/02/03 03:43:09 [sshd.8] use no-pty option in .ssh/authorized_keys* if you need a 8-bit clean channel. note from Erik.Anggard@cygate.se (pr/1659) - stevesk@cvs.openbsd.org 2001/02/03 10:03:06 [ssh.1] typos; ok markus@ - djm@cvs.openbsd.org 2001/02/04 04:11:56 [scp.1 sftp-server.c ssh.1 sshd.8 sftp-client.c sftp-client.h] [sftp-common.c sftp-common.h sftp-int.c sftp-int.h sftp.1 sftp.c] Basic interactive sftp client; ok theo@ - (djm) Update RPM specs for new sftp binary - (djm) Update several bits for new optional reverse lookup stuff. I think I got them all.
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/session.c b/session.c
index b6ab88731..51b661afb 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.51 2001/01/21 19:05:56 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.52 2001/02/03 10:08:37 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -683,7 +683,7 @@ get_remote_name_or_ip(void)
683{ 683{
684 static const char *remote = ""; 684 static const char *remote = "";
685 if (utmp_len > 0) 685 if (utmp_len > 0)
686 remote = get_canonical_hostname(); 686 remote = get_canonical_hostname(options.reverse_mapping_check);
687 if (utmp_len == 0 || strlen(remote) > utmp_len) 687 if (utmp_len == 0 || strlen(remote) > utmp_len)
688 remote = get_remote_ipaddr(); 688 remote = get_remote_ipaddr();
689 return remote; 689 return remote;
@@ -1061,7 +1061,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1061#ifdef HAVE_OSF_SIA 1061#ifdef HAVE_OSF_SIA
1062 extern char **saved_argv; 1062 extern char **saved_argv;
1063 extern int saved_argc; 1063 extern int saved_argc;
1064 char *host = get_canonical_hostname (); 1064 char *host = get_canonical_hostname(options.reverse_mapping_check);
1065 1065
1066 if (sia_become_user(NULL, saved_argc, saved_argv, host, 1066 if (sia_become_user(NULL, saved_argc, saved_argv, host,
1067 pw->pw_name, ttyname, 0, NULL, NULL, SIA_BEU_SETLUID) != 1067 pw->pw_name, ttyname, 0, NULL, NULL, SIA_BEU_SETLUID) !=