diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-22 02:00:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-22 02:00:13 +0000 |
commit | 4b69a8de067a4f5e93c441d4beb7755a7630bed3 (patch) | |
tree | 1d8e68270d49e74365e01133c6446ba0ad5e722e /libexec/uucpd/uucpd.c | |
parent | e8518c53ce38e3d83fefe33b9c1fb5447c97c3a6 (diff) |
do not chdir as root
Diffstat (limited to 'libexec/uucpd/uucpd.c')
-rw-r--r-- | libexec/uucpd/uucpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c index bd3c2a81591..98d3c67e3c0 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.1 1995/10/18 08:43:25 deraadt Exp $"; +static char rcsid[] = "$Id: uucpd.c,v 1.2 1996/07/22 02:00:12 deraadt Exp $"; #endif /* not lint */ /* @@ -195,8 +195,8 @@ struct sockaddr_in *sinp; dologin(pw, sinp); setgid(pw->pw_gid); initgroups(pw->pw_name, pw->pw_gid); - chdir(pw->pw_dir); setuid(pw->pw_uid); + chdir(pw->pw_dir); execl(_PATH_UUCICO, "uucico", (char *)0); perror("uucico server: execl"); } |