From owner-freebsd-bugs Sat Apr 24 6:40: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 4F1A714CC3 for ; Sat, 24 Apr 1999 06:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id GAA17317; Sat, 24 Apr 1999 06:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mail-gw1adm.rcsntx.swbell.net (mail-gw1.rcsntx.swbell.net [151.164.30.51]) by hub.freebsd.org (Postfix) with ESMTP id 925AF14CC3 for ; Sat, 24 Apr 1999 06:32:15 -0700 (PDT) (envelope-from chris@holly.dyndns.org) Received: from holly.dyndns.org (ppp-207-193-9-88.hstntx.swbell.net [207.193.9.88]) by mail-gw1adm.rcsntx.swbell.net (8.8.5/8.8.5) with ESMTP id IAA17922 for ; Sat, 24 Apr 1999 08:32:06 -0500 (CDT) Received: (from chris@localhost) by holly.dyndns.org (8.9.3/8.9.3) id IAA10930; Sat, 24 Apr 1999 08:32:44 -0500 (CDT) (envelope-from chris) Message-Id: <199904241332.IAA10930@holly.dyndns.org> Date: Sat, 24 Apr 1999 08:32:44 -0500 (CDT) From: Chris Costello Reply-To: chris@calldei.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/11303: whereis(1) doesn't properly handle names with '.' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11303 >Category: bin >Synopsis: whereis(1) doesn't properly handle names with '.' >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 24 06:40:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Chris Costello >Release: FreeBSD 4.0-CURRENT i386 >Organization: None >Environment: Not applicable. >Description: The whereis(1) command does not properly handle files with '.' in their names, for example, rpc.statd. >How-To-Repeat: /usr/home/chris$ whereis rpc.statd rpc: >Fix: Index: whereis.pl =================================================================== RCS file: /cvs/src/usr.bin/whereis/whereis.pl,v retrieving revision 1.6 diff -u -r1.6 whereis.pl --- whereis.pl 1998/10/04 10:33:37 1.6 +++ whereis.pl 1999/04/24 13:26:11 @@ -176,7 +176,6 @@ $name =~ s|^.*/||; # strip leading path name component $name =~ s/,v$//; $name =~ s/^s\.//; # RCS or SCCS suffix/prefix $name =~ s/\.(Z|z|gz)$//; # compression suffix - $name =~ s/\.[^.]+//; # any other suffix $line = ""; $unusual = 0; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message