bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] [PATCH] Update option max_timeout to require an argument


From: Omer Anson
Subject: [bug-inetutils] [PATCH] Update option max_timeout to require an argument (ftpd.c)
Date: Sat, 24 Jun 2017 16:25:23 +0300

This change adds a mandatory argument to max_timeout in ftpd.c.

The code in ftpd.c parsing command line arguments expects the -T option
(max_timeout) to have an argument. However, the argp_option structure of
max_timeout states that it has no argument.
---
 ftpd/ftpd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ftpd/ftpd.c b/ftpd/ftpd.c
index 5db88d0..ec70bee 100644
--- a/ftpd/ftpd.c
+++ b/ftpd/ftpd.c
@@ -294,8 +294,8 @@ static struct argp_option options[] = {
   { "timeout", 't', "TIMEOUT", 0,
     "set default idle timeout",
     GRID+1 },
-  { "max-timeout", 'T', NULL, 0,
-    "reset maximum value of timeout allowed",
+  { "max-timeout", 'T', "MAX_TIMEOUT", 0,
+    "set the maximum value of timeout allowed",
     GRID+1 },
   { "non-rfc2577", OPT_NONRFC2577, NULL, 0,
     "neglect RFC 2577 by giving info on missing users",
-- 
2.4.11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]