From owner-dev-commits-src-all@freebsd.org Thu Aug 19 10:45:45 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 20A0C662E0B; Thu, 19 Aug 2021 10:45:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gr1dP0Dhhz4cSX; Thu, 19 Aug 2021 10:45:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E4E29242F5; Thu, 19 Aug 2021 10:45:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17JAjiGe083876; Thu, 19 Aug 2021 10:45:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17JAjiv5083875; Thu, 19 Aug 2021 10:45:44 GMT (envelope-from git) Date: Thu, 19 Aug 2021 10:45:44 GMT Message-Id: <202108191045.17JAjiv5083875@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ka Ho Ng Subject: git: a54abe119e3b - main - truncate(1): Fix missing -d option manpage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a54abe119e3b4c6e000a1058afab4904d205850b Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2021 10:45:45 -0000 The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=a54abe119e3b4c6e000a1058afab4904d205850b commit a54abe119e3b4c6e000a1058afab4904d205850b Author: Ka Ho Ng AuthorDate: 2021-08-19 10:45:25 +0000 Commit: Ka Ho Ng CommitDate: 2021-08-19 10:45:25 +0000 truncate(1): Fix missing -d option manpage Mention that either one of the -r, -s and -d options must be specified. Sponsored by: The FreeBSD Foundation --- usr.bin/truncate/truncate.1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.bin/truncate/truncate.1 b/usr.bin/truncate/truncate.1 index 54780ccbca83..0ea224deaff5 100644 --- a/usr.bin/truncate/truncate.1 +++ b/usr.bin/truncate/truncate.1 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 18, 2021 +.Dd August 19, 2021 .Dt TRUNCATE 1 .Os .Sh NAME @@ -158,9 +158,10 @@ Kilobytes, Megabytes, Gigabytes or Terabytes respectively. .Pp Exactly one of the -.Fl r -and +.Fl r , .Fl s +and +.Fl d options must be specified. .Pp If a file is made smaller, its extra data is lost.