diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2005-02-16 11:22:20 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2005-02-16 11:22:20 +0000 |
commit | 91ae77792e6291fc6cb05e69a945f2d11c6c2a21 (patch) | |
tree | 50825c1ea7c6982fb63b4f08a9b6bc63c5072442 /libexec | |
parent | c82b8ff04fe1fda14a946a4b38969abcc26d0c77 (diff) | |
download | src-91ae77792e6291fc6cb05e69a945f2d11c6c2a21.tar.gz src-91ae77792e6291fc6cb05e69a945f2d11c6c2a21.zip |
A call to maskurg() makes sense only when a transfer is under way,
the function will emit an annoying log message otherwise.
Reported by: kris
MFC: along with rev. 1.202
Notes
Notes:
svn path=/head/; revision=141966
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index f3e437e1671e..5d8229dffc89 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -2764,12 +2764,14 @@ static void flagxfer(int flag) { - maskurg(!flag); if (flag) { - recvurg = 0; transflag = 1; - } else + maskurg(0); + recvurg = 0; + } else { + maskurg(1); transflag = 0; + } } /* |