summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-15 17:58:34 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-15 17:58:34 +0000
commit938b8285661f56181405b8c1637b31bf7b618de0 (patch)
treeea21f21863e80b2ae8967db5f62f1c9589cce4d6 /session.c
parentc491b0def1ac7b468bc6ce3ceffc3493b102ca1d (diff)
- (bal) Remove unused tty defined in do_setusercontext() pointed out by
dtucker@zip.com.au plus a a more KNF since I am near it.
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/session.c b/session.c
index 774e6168..5fb1ace0 100644
--- a/session.c
+++ b/session.c
@@ -1159,8 +1159,6 @@ do_nologin(struct passwd *pw)
void
do_setusercontext(struct passwd *pw)
{
- char tty='\0';
-
#ifdef HAVE_CYGWIN
if (is_winnt) {
#else /* HAVE_CYGWIN */
@@ -1170,9 +1168,9 @@ do_setusercontext(struct passwd *pw)
setpcred(pw->pw_name);
#endif /* HAVE_SETPCRED */
#ifdef HAVE_LOGIN_CAP
-#ifdef __bsdi__
+# ifdef __bsdi__
setpgid(0, 0);
-#endif
+# endif
if (setusercontext(lc, pw, pw->pw_uid,
(LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {
perror("unable to set user context");