Date: Wed, 23 Jul 1997 10:47:03 +0900 (JST) From: Kouichi Hirabayashi <kh@mogami-wire.co.jp> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4145: join(1) failes or outputs wrong output with some file names Message-ID: <199707230147.KAA24686@eve.mogami-wire.co.jp> Resent-Message-ID: <199707230150.SAA14821@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4145 >Category: bin >Synopsis: join(1) failes or outputs wrong output with some file names >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 22 18:50:02 PDT 1997 >Last-Modified: >Originator: Kouichi Hirabayashi >Organization: Organization of PR author (multiple lines) >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: raw system just installed by official CD-ROM (2.2.2-RELEASE) >Description: The join command causes error or wrong output with some type of file names (2'nd character is 'j' and 3'rd character is from 1 to 3). >How-To-Repeat: For examples, 1) abort with error message (join: illegal option -- mj3) join q1 mj3 2) wrong output (produces unpairable records) join q1 qj1 >Fix: *** ORGjoin.c Wed Jul 23 10:21:28 1997 --- join.c Wed Jul 23 10:21:52 1997 *************** *** 504,510 **** while ((ap = *++argv) != NULL) { /* Return if "--". */ ! if (ap[0] == '-' && ap[1] == '-') return; switch (ap[1]) { case 'a': --- 504,510 ---- while ((ap = *++argv) != NULL) { /* Return if "--". */ ! if (ap[0] != '-' || ap[0] == '-' && ap[1] == '-') return; switch (ap[1]) { case 'a': >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707230147.KAA24686>