Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp ftp(1): fix description of "debug"



details:   https://anonhg.NetBSD.org/src/rev/4a3c9d320fc8
branches:  trunk
changeset: 949236:4a3c9d320fc8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 06 09:15:59 2021 +0000

description:
ftp(1): fix description of "debug"

"debug" command and documentation got accidentally renamed
to "ftp_debug" 13 years ago, and was only partially fixed.

diffstat:

 usr.bin/ftp/cmds.c |   8 ++++----
 usr.bin/ftp/ftp.1  |  26 +++++++++++++-------------
 2 files changed, 17 insertions(+), 17 deletions(-)

diffs (86 lines):

diff -r a290ab075b7b -r 4a3c9d320fc8 usr.bin/ftp/cmds.c
--- a/usr.bin/ftp/cmds.c        Wed Jan 06 08:17:46 2021 +0000
+++ b/usr.bin/ftp/cmds.c        Wed Jan 06 09:15:59 2021 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: cmds.c,v 1.140 2019/02/06 07:56:42 martin Exp $        */
+/*     $NetBSD: cmds.c,v 1.141 2021/01/06 09:15:59 lukem Exp $ */
 
 /*-
- * Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
+ * Copyright (c) 1996-2021 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -96,7 +96,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c     8.6 (Berkeley) 10/9/94";
 #else
-__RCSID("$NetBSD: cmds.c,v 1.140 2019/02/06 07:56:42 martin Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.141 2021/01/06 09:15:59 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -1131,7 +1131,7 @@
                options |= SO_DEBUG;
        else
                options &= ~SO_DEBUG;
-       fprintf(ttyout, "Debugging %s (ftp_debug=%d).\n", onoff(ftp_debug), ftp_debug);
+       fprintf(ttyout, "Debugging %s (debug=%d).\n", onoff(ftp_debug), ftp_debug);
        code = ftp_debug > 0;
 }
 
diff -r a290ab075b7b -r 4a3c9d320fc8 usr.bin/ftp/ftp.1
--- a/usr.bin/ftp/ftp.1 Wed Jan 06 08:17:46 2021 +0000
+++ b/usr.bin/ftp/ftp.1 Wed Jan 06 09:15:59 2021 +0000
@@ -1,6 +1,6 @@
-.\"    $NetBSD: ftp.1,v 1.142 2020/07/18 03:00:37 lukem Exp $
+.\"    $NetBSD: ftp.1,v 1.143 2021/01/06 09:15:59 lukem Exp $
 .\"
-.\" Copyright (c) 1996-2020 The NetBSD Foundation, Inc.
+.\" Copyright (c) 1996-2021 The NetBSD Foundation, Inc.
 .\" All rights reserved.
 .\"
 .\" This code is derived from software contributed to The NetBSD Foundation
@@ -57,7 +57,7 @@
 .\"
 .\"    @(#)ftp.1       8.3 (Berkeley) 10/9/94
 .\"
-.Dd July 18, 2020
+.Dd January 6, 2021
 .Dt FTP 1
 .Os
 .Sh NAME
@@ -455,6 +455,16 @@
 distinguished from a record delimiter only when
 .Ic \&cr
 is off.
+.It Ic debug Op Ar debug-value
+Toggle debugging mode.
+If an optional
+.Ar debug-value
+is specified it is used to set the debugging level.
+When debugging is on,
+.Nm
+prints each command sent to the remote machine, preceded
+by the string
+.Ql \-\-> .
 .It Ic delete Ar remote-file
 Delete the file
 .Ar remote-file
@@ -530,16 +540,6 @@
 .It Ic ftp Ar host Op Ar port
 A synonym for
 .Ic open .
-.It Ic ftp_debug Op Ar ftp_debug-value
-Toggle debugging mode.
-If an optional
-.Ar ftp_debug-value
-is specified it is used to set the debugging level.
-When debugging is on,
-.Nm
-prints each command sent to the remote machine, preceded
-by the string
-.Ql \-\-> .
 .It Ic gate Op Ar host Op Ar port
 Toggle gate-ftp mode, which used to connect through the
 TIS FWTK and Gauntlet ftp proxies.



Home | Main Index | Thread Index | Old Index