From chris@holly.dyndns.org Sat Apr 24 06:32:15 1999
Return-Path: <chris@holly.dyndns.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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <chris@holly.dyndns.org>
Reply-To: chris@calldei.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: whereis(1) doesn't properly handle names with '.'
X-Send-Pr-Version: 3.2

>Number:         11303
>Category:       bin
>Synopsis:       whereis(1) doesn't properly handle names with '.'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 24 06:40:01 PDT 1999
>Closed-Date:    Mon Jun 21 12:49:31 PDT 1999
>Last-Modified:  Mon Jun 21 12:52:39 PDT 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Mon Jun 21 12:49:31 PDT 1999 
State-Changed-Why:  
The previous behavoiur was intentional.  Changed anyways, thanks. 
>Unformatted:
