NetBSD Problem Report #8475
Received: (qmail 26208 invoked from network); 23 Sep 1999 04:00:39 -0000
Message-Id: <19990923040034.3078.qmail@primenet.com.au>
Date: 23 Sep 1999 14:00:34 +1000
From: mason@primenet.com.au
Reply-To: mason@primenet.com.au
To: gnats-bugs@gnats.netbsd.org
Subject: usr.bin/col getopt fails (bad patch 1.9->1.10)
X-Send-Pr-Version: 3.95
>Number: 8475
>Category: bin
>Synopsis: getopt for usr.bin/col is incorrect
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 22 21:05:00 +0000 1999
>Closed-Date: Thu Sep 23 09:00:39 +0000 1999
>Last-Modified: Thu Sep 23 09:01:21 +0000 1999
>Originator: Geoff C. Wing
>Release: After 19990222
>Organization:
Geoff Wing : <gcw@pobox.com> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@zsh.org> Phone : (Australia) 0413 431 874
>Environment:
System: NetBSD c.primenet.com.au 1.4K NetBSD 1.4K (C) #0: Mon Sep 20 17:21:41 EST 1999 open@rubicon.stables.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/C i386
>Description:
patch 1.9->1.10 for usr.bin/col/col.c killed the getopt line
% col -l <argument>
% col -p # noargument
>How-To-Repeat:
% col -l 20
seg fault
>Fix:
*** usr.bin/col/col.c.org Tue Feb 23 09:16:01 1999
--- usr.bin/col/col.c Thu Sep 23 13:55:32 1999
***************
*** 137,143 ****
max_bufd_lines = 128;
compress_spaces = 1; /* compress spaces into tabs */
pass_unknown_seqs = 0; /* remove unknown escape sequences */
! while ((opt = getopt(argc, argv, "bfhlp:x")) != -1)
switch (opt) {
case 'b': /* do not output backspaces */
no_backspaces = 1;
--- 137,143 ----
max_bufd_lines = 128;
compress_spaces = 1; /* compress spaces into tabs */
pass_unknown_seqs = 0; /* remove unknown escape sequences */
! while ((opt = getopt(argc, argv, "bfhl:px")) != -1)
switch (opt) {
case 'b': /* do not output backspaces */
no_backspaces = 1;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Thu Sep 23 02:00:39 PDT 1999
State-Changed-Why:
Patch applied, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.