diff options
Diffstat (limited to 'libexec/uucpd/uucpd.c')
-rw-r--r-- | libexec/uucpd/uucpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index 69f68841125..f515bed2d6e 100644 --- a/libexec/uucpd/uucpd.c +++ b/libexec/uucpd/uucpd.c @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: uucpd.c,v 1.6 1996/12/03 01:29:54 deraadt Exp $"; +static char rcsid[] = "$Id: uucpd.c,v 1.7 1996/12/22 03:41:24 tholo Exp $"; #endif /* not lint */ /* @@ -202,8 +202,10 @@ struct sockaddr_in *sinp; (void) snprintf(Loginname, sizeof(Loginname), "LOGNAME=%s", user); dologin(pw, sinp); setlogin(user); + setegid(pw->pw_gid); setgid(pw->pw_gid); initgroups(pw->pw_name, pw->pw_gid); + seteuid(pw->pw_uid); setuid(pw->pw_uid); chdir(pw->pw_dir); execl(_PATH_UUCICO, "uucico", (char *)0); |