From owner-freebsd-standards Mon Mar 18 18:50:42 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 00C0937B435 for ; Mon, 18 Mar 2002 18:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2J2o1M85996; Mon, 18 Mar 2002 18:50:01 -0800 (PST) (envelope-from gnats) Received: from descent.robbins.dropbear.id.au (044.a.006.mel.iprimus.net.au [210.50.44.44]) by hub.freebsd.org (Postfix) with ESMTP id 1A8C537B402 for ; Mon, 18 Mar 2002 18:44:35 -0800 (PST) Received: (from tim@localhost) by descent.robbins.dropbear.id.au (8.11.6/8.11.6) id g2J2ghC00736; Tue, 19 Mar 2002 13:42:43 +1100 (EST) (envelope-from tim) Message-Id: <200203190242.g2J2ghC00736@descent.robbins.dropbear.id.au> Date: Tue, 19 Mar 2002 13:42:43 +1100 (EST) From: "Tim J. Robbins" Reply-To: "Tim J. Robbins" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/36074: paste(1) should not accept no arguments Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 36074 >Category: standards >Synopsis: paste(1) should not accept no arguments >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 18 18:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tim J. Robbins >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD descent.robbins.dropbear.id.au 4.5-STABLE FreeBSD 4.5-STABLE #8: Tue Mar 19 08:46:39 EST 2002 tim@descent.robbins.dropbear.id.au:/usr/obj/usr/src/sys/DESCENT i386 >Description: When invoked with no arguments, paste(1) does nothing instead of giving a usage error message, like its usage and SYNOPSIS would indicate, as well as the standard. >How-To-Repeat: paste >Fix: Index: paste/paste.c =================================================================== RCS file: /home/ncvs/src/usr.bin/paste/paste.c,v retrieving revision 1.6 diff -u -r1.6 paste.c --- paste/paste.c 1999/08/28 01:04:53 1.6 +++ paste/paste.c 2002/03/02 17:40:30 @@ -88,6 +88,9 @@ argc -= optind; argv += optind; + if (*argv == NULL) + usage(); + if (!delim) { delimcnt = 1; delim = "\t"; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message