summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-04-23 20:45:55 +0000
committerKevin Steves <stevesk@pobox.com>2002-04-23 20:45:55 +0000
commit5feaaefaf26167feb180bf3531cb3f700e473e2a (patch)
tree67b07cf420511c1b92d2e72d0eb04c75401043d6 /session.c
parent03df6cd83c6392d43e4d9f8dce4e15c8239c0872 (diff)
- (stevesk) [acconfig.h configure.ac session.c] LOGIN_NO_ENDOPT for HP-UX
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 6be7f992..20e6a889 100644
--- a/session.c
+++ b/session.c
@@ -1117,7 +1117,11 @@ launch_login(struct passwd *pw, const char *hostname)
#ifdef xxxLOGIN_NEEDS_TERM
(s->term ? s->term : "unknown"),
#endif /* LOGIN_NEEDS_TERM */
+#ifdef LOGIN_NO_ENDOPT
+ "-p", "-f", pw->pw_name, (char *)NULL);
+#else
"-p", "-f", "--", pw->pw_name, (char *)NULL);
+#endif
/* Login couldn't be executed, die. */