From owner-svn-src-head@freebsd.org Thu Aug 23 17:00:08 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8161C1092A0D; Thu, 23 Aug 2018 17:00:08 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 377DB7A9B2; Thu, 23 Aug 2018 17:00:08 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 19D3624CD3; Thu, 23 Aug 2018 17:00:08 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NH07uw026761; Thu, 23 Aug 2018 17:00:07 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7NH07qN026760; Thu, 23 Aug 2018 17:00:07 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201808231700.w7NH07qN026760@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Thu, 23 Aug 2018 17:00:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338258 - head/usr.bin/tftp X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/usr.bin/tftp X-SVN-Commit-Revision: 338258 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 17:00:08 -0000 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