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 774e6168a..5fb1ace00 100644
--- a/session.c
+++ b/session.c
@@ -1159,8 +1159,6 @@ do_nologin(struct passwd *pw)
1159void 1159void
1160do_setusercontext(struct passwd *pw) 1160do_setusercontext(struct passwd *pw)
1161{ 1161{
1162 char tty='\0';
1163
1164#ifdef HAVE_CYGWIN 1162#ifdef HAVE_CYGWIN
1165 if (is_winnt) { 1163 if (is_winnt) {
1166#else /* HAVE_CYGWIN */ 1164#else /* HAVE_CYGWIN */
@@ -1170,9 +1168,9 @@ do_setusercontext(struct passwd *pw)
1170 setpcred(pw->pw_name); 1168 setpcred(pw->pw_name);
1171#endif /* HAVE_SETPCRED */ 1169#endif /* HAVE_SETPCRED */
1172#ifdef HAVE_LOGIN_CAP 1170#ifdef HAVE_LOGIN_CAP
1173#ifdef __bsdi__ 1171# ifdef __bsdi__
1174 setpgid(0, 0); 1172 setpgid(0, 0);
1175#endif 1173# endif
1176 if (setusercontext(lc, pw, pw->pw_uid, 1174 if (setusercontext(lc, pw, pw->pw_uid,
1177 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { 1175 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {
1178 perror("unable to set user context"); 1176 perror("unable to set user context");