diff --git a/session.c b/session.c index 9a606ef..d0846e5 100644 --- a/session.c +++ b/session.c @@ -1325,8 +1325,6 @@ do_setusercontext(struct passwd *pw) error("setluid: %s", strerror(errno)); # endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */ - if (setlogin(pw->pw_name) < 0) - error("setlogin failed: %s", strerror(errno)); if (setgid(pw->pw_gid) < 0) { perror("setgid"); exit(1);