Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2020 01:56:22 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r366240 - stable/12/libexec/ftpd
Message-ID:  <202009290156.08T1uMVe077276@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Sep 29 01:56:21 2020
New Revision: 366240
URL: https://svnweb.freebsd.org/changeset/base/366240

Log:
  MFC r366003:
  ftpd: Add missing braces around a statfd check

Modified:
  stable/12/libexec/ftpd/ftpd.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/libexec/ftpd/ftpd.c
==============================================================================
--- stable/12/libexec/ftpd/ftpd.c	Tue Sep 29 01:54:04 2020	(r366239)
+++ stable/12/libexec/ftpd/ftpd.c	Tue Sep 29 01:56:21 2020	(r366240)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009290156.08T1uMVe077276>