tftp(1): switch default transfer mode to binary

netascii is obsolete and inefficient. It isn't even supported by many
clients. Better to use binary mode by default.

Reviewed by:	cem
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D16869
This commit is contained in:
Alan Somers 2018-08-23 17:00:07 +00:00
parent 20cc39d085
commit 7dbe228c6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338258
2 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ main(int argc, char *argv[])
acting_as_client = 1;
peer = -1;
strcpy(mode, "netascii");
strcpy(mode, "octet");
signal(SIGINT, intr);
interactive = isatty(STDIN_FILENO);

View file

@ -28,7 +28,7 @@
.\" @(#)tftp.1 8.2 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
.Dd June 22, 2011
.Dd Aug 22, 2018
.Dt TFTP 1
.Os
.Sh NAME
@ -151,7 +151,7 @@ may be one of
or
.Em binary .
The default is
.Em ascii .
.Em binary .
.Pp
.It Cm packetdrop [arg]
Randomly drop