From nobody  Tue Aug  4 03:07:27 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id DAA26808;
          Tue, 4 Aug 1998 03:07:27 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199808041007.DAA26808@hub.freebsd.org>
Date: Tue, 4 Aug 1998 03:07:27 -0700 (PDT)
From: lhecking@nmrc.ucc.ie
To: freebsd-gnats-submit@freebsd.org
Subject: Typos in catman/makewhatis perl scripts
X-Send-Pr-Version: www-1.0

>Number:         7488
>Category:       gnu
>Synopsis:       Typos in catman/makewhatis perl scripts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug  4 03:10:00 PDT 1998
>Closed-Date:    Tue Aug 4 20:45:08 PDT 1998
>Last-Modified:  Tue Aug  4 20:45:52 PDT 1998
>Originator:     Lars Hecking
>Release:        none (files in question from -current)
>Organization:
National Microelectronics Research Centre
>Environment:
Architecture independent (perl scripts)

>Description:
1) Typo in help for makewhatis.perl

2) Typo (?) in chmod invocation in catman.perl. Potentially harmful.


>How-To-Repeat:
vi +35 catman.perl 
vi +179 makewhatis.perl
;)
>Fix:
Ad1)
--- makewhatis.perl     Tue Aug  4 10:46:20 1998
+++ makewhatis.perl.new Tue Aug  4 10:59:42 1998
@@ -32,7 +32,7 @@
 sub usage {
 
     warn <<EOF;
-usage: makewhatis [-a|-append ] [-h|-help] [-i|-indent colum]
+usage: makewhatis [-a|-append ] [-h|-help] [-i|-indent column]
                   [-n|-name name] [-o|-outfile file] [-v|-verbose] 
                   [directories ...]
 EOF

Ad2)--- catman.perl Tue Aug  4 10:46:10 1998
+++ catman.perl.new     Tue Aug  4 11:00:44 1998
@@ -176,7 +176,7 @@
     $catdir = &man2cat($subdir);
     if (-d $catdir) {
        return 1 if -w _;
-       if (!chmod(755, $catdir)) {
+       if (!chmod(0755, $catdir)) {
            warn "Cannot write $catdir, chmod: $!\n";
            $exit = 1;
            return 0;


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thepish 
State-Changed-When: Tue Aug 4 05:09:21 PDT 1998 
State-Changed-Why:  
patches applied. Thanks 
State-Changed-From-To: closed->open 
State-Changed-By: bde 
State-Changed-When: Tue Aug 4 10:27:59 PDT 1998 
State-Changed-Why:  
Patches not applied to -current. 
State-Changed-From-To: open->closed 
State-Changed-By: thepish 
State-Changed-When: Tue Aug 4 20:45:08 PDT 1998 
State-Changed-Why:  
merge from stable to current. Thanks to bde for the reminder 
>Unformatted:
