svn commit: r338258 - head/usr.bin/tftp

Alan Somers asomers at FreeBSD.org
Thu Aug 23 17:00:08 UTC 2018


Author: asomers
Date: Thu Aug 23 17:00:07 2018
New Revision: 338258
URL: https://svnweb.freebsd.org/changeset/base/338258

Log:
  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

Modified:
  head/usr.bin/tftp/main.c
  head/usr.bin/tftp/tftp.1

Modified: head/usr.bin/tftp/main.c
==============================================================================
--- head/usr.bin/tftp/main.c	Thu Aug 23 16:54:22 2018	(r338257)
+++ head/usr.bin/tftp/main.c	Thu Aug 23 17:00:07 2018	(r338258)
@@ -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);

Modified: head/usr.bin/tftp/tftp.1
==============================================================================
--- head/usr.bin/tftp/tftp.1	Thu Aug 23 16:54:22 2018	(r338257)
+++ head/usr.bin/tftp/tftp.1	Thu Aug 23 17:00:07 2018	(r338258)
@@ -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


More information about the svn-src-head mailing list