svn commit: r366240 - stable/12/libexec/ftpd
Mark Johnston
markj at FreeBSD.org
Tue Sep 29 01:56:22 UTC 2020
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,
More information about the svn-src-all
mailing list