diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2001-09-21 18:06:26 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2001-09-21 18:06:26 +0000 |
commit | a5c89a5b5a46e5c699e2c03a0ae973906d2ad113 (patch) | |
tree | af6c2d04ea1b10907a9c12ecb6c6459d7ce8d89b /libexec/ftp-proxy | |
parent | 90ecb134ff0f73e5d84f3e5c10667a867b6c645e (diff) |
Drop privs to named group, not group with same name as user.
noticed by itojun, thanks.
fries, you need to catch this for what you're using with faithd
Diffstat (limited to 'libexec/ftp-proxy')
-rw-r--r-- | libexec/ftp-proxy/ftp-proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c index d815cd9a4d9..320c7704670 100644 --- a/libexec/ftp-proxy/ftp-proxy.c +++ b/libexec/ftp-proxy/ftp-proxy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp-proxy.c,v 1.15 2001/09/05 20:40:10 beck Exp $ */ +/* $OpenBSD: ftp-proxy.c,v 1.16 2001/09/21 18:06:25 beck Exp $ */ /* * Copyright (c) 1996-2001 @@ -211,7 +211,7 @@ drop_privs() } if (Group != NULL) { - gr = getgrnam(User); + gr = getgrnam(Group); if (gr == NULL) { syslog(LOG_ERR, "can't find group %s", Group); exit(EX_USAGE); |