From 3c0c1e01c9c55aa0ef5bec9a4612d1ce68dd76da Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 22 Sep 2020 15:54:18 +0000 Subject: [PATCH] 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 --- libexec/ftpd/ftpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 043c896406fd..25ae3fba956b 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1530,7 +1530,7 @@ skip: 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 @@ skip: #endif if (statfd < 0) stats = 0; + } /* * For a chrooted local user,