]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authorotto@openbsd.org <otto@openbsd.org>
Tue, 23 Aug 2016 16:21:45 +0000 (16:21 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 29 Aug 2016 01:20:28 +0000 (11:20 +1000)
fix previous, a condition was modified incorrectly; ok
markus@ deraadt@

Upstream-ID: c443e339768e7ed396dff3bb55f693e7d3641453

session.c

index fcfa800002362be084213dfe4824ac192d3d0b03..85805f5a045270a48555f69a68a7238676826cef 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.284 2016/08/19 03:18:06 djm Exp $ */
+/* $OpenBSD: session.c,v 1.285 2016/08/23 16:21:45 otto Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -543,17 +543,11 @@ do_exec_pty(Session *s, const char *command)
                close(ttyfd);
 
                /* record login, etc. similar to login(1) */
-#ifndef HAVE_OSF_SIA
-               if (command != NULL) {
 #ifdef _UNICOS
-                       cray_init_job(s->pw); /* set up cray jid and tmpdir */
+               cray_init_job(s->pw); /* set up cray jid and tmpdir */
 #endif /* _UNICOS */
-                       do_login(s, command);
-               }
-# ifdef LOGIN_NEEDS_UTMPX
-               else
-                       do_pre_login(s);
-# endif
+#ifndef HAVE_OSF_SIA
+               do_login(s, command);
 #endif
                /*
                 * Do common processing for the child, such as execing