Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 1999 08:32:44 -0500 (CDT)
From:      Chris Costello <chris@holly.dyndns.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/11303: whereis(1) doesn't properly handle names with '.'
Message-ID:  <199904241332.IAA10930@holly.dyndns.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904241332.IAA10930>