From 91ae77792e6291fc6cb05e69a945f2d11c6c2a21 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Wed, 16 Feb 2005 11:22:20 +0000 Subject: [PATCH] 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 --- libexec/ftpd/ftpd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index f3e437e1671..5d8229dffc8 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; + } } /*