summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-07-29 05:33:00 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-07-29 05:33:00 +0000
commit089f0b9d36e1645042d7d82329d7e14ac207491f (patch)
tree25ff0b910af5737c24ec75d21618eff43655b36c /libexec/ftpd/ftpd.c
parentff2e552d7c5a3fe5eb8e3e4e68cf8b312759d99c (diff)
Remove some FreeBSD cruft.
Diffstat (limited to 'libexec/ftpd/ftpd.c')
-rw-r--r--libexec/ftpd/ftpd.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index a61380bc10c..774266e45fb 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.8 1996/07/29 03:06:35 downsj Exp $ */
+/* $OpenBSD: ftpd.c,v 1.9 1996/07/29 05:32:59 downsj Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -1704,22 +1704,15 @@ passive()
}
on = high_data_ports ? IP_PORTRANGE_HIGH : IP_PORTRANGE_DEFAULT;
- (void) seteuid((uid_t)0);
if (setsockopt(pdata, IPPROTO_IP, IP_PORTRANGE,
- (char *)&on, sizeof(on)) < 0) {
- (void) seteuid((uid_t)pw->pw_uid);
+ (char *)&on, sizeof(on)) < 0)
goto pasv_error;
- }
pasv_addr = ctrl_addr;
pasv_addr.sin_port = 0;
- (void) seteuid((uid_t)0);
if (bind(pdata, (struct sockaddr *)&pasv_addr,
- sizeof(pasv_addr)) < 0) {
- (void) seteuid((uid_t)pw->pw_uid);
+ sizeof(pasv_addr)) < 0)
goto pasv_error;
- }
- (void) seteuid((uid_t)pw->pw_uid);
len = sizeof(pasv_addr);
if (getsockname(pdata, (struct sockaddr *) &pasv_addr, &len) < 0)