Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2020 15:54:18 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r366003 - head/libexec/ftpd
Message-ID:  <202009221554.08MFsIOT009324@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Sep 22 15:54:18 2020
New Revision: 366003
URL: https://svnweb.freebsd.org/changeset/base/366003

Log:
  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

Modified:
  head/libexec/ftpd/ftpd.c

Modified: head/libexec/ftpd/ftpd.c
==============================================================================
--- head/libexec/ftpd/ftpd.c	Tue Sep 22 15:54:05 2020	(r366002)
+++ head/libexec/ftpd/ftpd.c	Tue Sep 22 15:54:18 2020	(r366003)
@@ -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?202009221554.08MFsIOT009324>