Module Name: src Committed By: lukem Date: Fri Jul 19 03:51:21 UTC 2024
Modified Files: src/usr.bin/ftp: ftp.1 ssl.c Log Message: ftp: improve -b documentation Order -b bufsize in the synopsis. Document the actual default value. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/usr.bin/ftp/ftp.1 cvs rdiff -u -r1.18 -r1.19 src/usr.bin/ftp/ssl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/ftp/ftp.1 diff -u src/usr.bin/ftp/ftp.1:1.154 src/usr.bin/ftp/ftp.1:1.155 --- src/usr.bin/ftp/ftp.1:1.154 Wed Apr 17 02:46:03 2024 +++ src/usr.bin/ftp/ftp.1 Fri Jul 19 03:51:21 2024 @@ -1,6 +1,6 @@ -.\" $NetBSD: ftp.1,v 1.154 2024/04/17 02:46:03 gutteridge Exp $ +.\" $NetBSD: ftp.1,v 1.155 2024/07/19 03:51:21 lukem Exp $ .\" -.\" Copyright (c) 1996-2023 The NetBSD Foundation, Inc. +.\" Copyright (c) 1996-2024 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 April 17, 2024 +.Dd July 19, 2024 .Dt FTP 1 .Os .Sh NAME @@ -66,10 +66,10 @@ .Sh SYNOPSIS .Nm .Op Fl 46AadefginpRtVv\&? +.Op Fl b Ar bufsize .Op Fl N Ar netrc .Op Fl o Ar output .Op Fl P Ar port -.Op Fl b Ar bufsize .Op Fl q Ar quittime .Op Fl r Ar retry .Op Fl s Ar srcaddr @@ -205,8 +205,11 @@ to bypass normal login procedure, and us .It Fl b Ar bufsize Change the input buffer size to .Ar bufsize . -The default is -.Dv 16K . +The default +.Ar bufsize +is +.Dv 16384 +(16 KiB). .It Fl d Enables debugging. .It Fl e Index: src/usr.bin/ftp/ssl.c diff -u src/usr.bin/ftp/ssl.c:1.18 src/usr.bin/ftp/ssl.c:1.19 --- src/usr.bin/ftp/ssl.c:1.18 Mon Feb 19 00:15:20 2024 +++ src/usr.bin/ftp/ssl.c Fri Jul 19 03:51:21 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ssl.c,v 1.18 2024/02/19 00:15:20 christos Exp $ */ +/* $NetBSD: ssl.c,v 1.19 2024/07/19 03:51:21 lukem Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: ssl.c,v 1.18 2024/02/19 00:15:20 christos Exp $"); +__RCSID("$NetBSD: ssl.c,v 1.19 2024/07/19 03:51:21 lukem Exp $"); #endif #include <err.h> @@ -579,7 +579,7 @@ fetch_getline(struct fetch_connect *conn break; } if (errormsg) - *errormsg = "Input line is too long (specify -b > 16K)"; + *errormsg = "Input line is too long (specify -b > 16384)"; fetch_clearerr(conn); return -3; }