Date: Thu, 23 Aug 2018 17:00:07 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338258 - head/usr.bin/tftp Message-ID: <201808231700.w7NH07qN026760@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231700.w7NH07qN026760>