diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 72456aee2f1e..5716e0123637 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1401,7 +1401,7 @@ pass(char *passwd) } } login_attempts = 0; /* this time successful */ - if (setegid((gid_t)pw->pw_gid) < 0) { + if (setegid(pw->pw_gid) < 0) { reply(550, "Can't set gid."); return; }