summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/uucpd/uucpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c
index 8e14b5177c1..787d48c2dae 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.3 1996/08/27 10:23:00 deraadt Exp $";
+static char rcsid[] = "$Id: uucpd.c,v 1.4 1996/09/02 13:12:23 deraadt Exp $";
#endif /* not lint */
/*
@@ -193,6 +193,7 @@ struct sockaddr_in *sinp;
alarm(0);
sprintf(Username, "USER=%s", user);
dologin(pw, sinp);
+ setlogin(user);
setgid(pw->pw_gid);
initgroups(pw->pw_name, pw->pw_gid);
setuid(pw->pw_uid);