Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Aug 2002 13:30:00 -0700 (PDT)
From:      Idar Tollefsen <idart@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/41389: Error in locate.mklocatedb causes locate.updatedb to fail
Message-ID:  <200208062030.g76KU0jb058253@www.freebsd.org>

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

>Number:         41389
>Category:       bin
>Synopsis:       Error in locate.mklocatedb causes locate.updatedb to fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 06 13:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Idar Tollefsen
>Release:        4.6-STABLE
>Organization:
Performance Design
>Environment:
FreeBSD blackbird.performancedesign.no 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Aug  6 22:53:20 CEST 2002     root@:/usr/obj/usr/src/sys/BLACKBIRD  alpha
>Description:
I just finished rebuilding world and a new kernel, and I wanted to
update my locate database. Runnin locate.updatedb failed with the
following message:
/usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected

I just cvsup'd the source tree, so everything is up to date.
>How-To-Repeat:
Run locate.updatedb.      
>Fix:
--- locate.mklocatedb.orig	Tue Aug  6 22:41:15 2002
+++ locate.mklocatedb	Tue Aug  6 22:19:03 2002
@@ -83,8 +83,7 @@
 else
     if $sortcmd $sortopt > $filelist; then
         $bigram < $filelist | $sort -nr | 
-	perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams 
-	    || exit 1
+	perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams || exit 1
         $code $bigrams < $filelist || exit 1
     else
         echo "`basename $0`: cannot build locate database" >&2      
>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?200208062030.g76KU0jb058253>