diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-09-22 15:54:18 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-09-22 15:54:18 +0000 |
commit | 3c0c1e01c9c55aa0ef5bec9a4612d1ce68dd76da (patch) | |
tree | 95873e09d05d70b0257de7bde8ac9c11fc7d4e49 /libexec | |
parent | 0aabff28805234d05583788c1100f9ca50164adf (diff) | |
download | src-test2-3c0c1e01c9c55aa0ef5bec9a4612d1ce68dd76da.tar.gz src-test2-3c0c1e01c9c55aa0ef5bec9a4612d1ce68dd76da.zip |
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
Notes
Notes:
svn path=/head/; revision=366003
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |