ftpd: Add missing braces around a statfd check

This was harmless but looked incorrect.  No functional change intended.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2020-09-22 15:54:18 +00:00
parent 0aabff2880
commit 3c0c1e01c9

View File

@ -1530,7 +1530,7 @@ pass(char *passwd)
setusercontext(lc, pw, 0, LOGIN_SETRESOURCES);
#endif
if (guest && stats && statfd < 0)
if (guest && stats && statfd < 0) {
#ifdef VIRTUAL_HOSTING
statfd = open(thishost->statfile, O_WRONLY|O_APPEND);
#else
@ -1538,6 +1538,7 @@ pass(char *passwd)
#endif
if (statfd < 0)
stats = 0;
}
/*
* For a chrooted local user,