From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18906 invoked from network); 26 May 2002 13:21:40 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 26 May 2002 13:21:40 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17BxxN-0001lt-00; Sun, 26 May 2002 09:21:09 -0400 Received: from gnats by fencepost.gnu.org with local (Exim 3.34 #1 (Debian)) id 17Bxuo-0001hR-00; Sun, 26 May 2002 09:18:30 -0400 From: Lars.Henriksen@netman.dk To: pdm-gnats@zamazal.org,gnats-prs@gnu.org,bug-gnats@gnu.org Reply-To: Lars.Henriksen@netman.dk Subject: gnats/384: mkdb should fail for a remote database Message-Id: Sender: gnats-prs-admin@gnu.org Errors-To: gnats-prs-admin@gnu.org X-BeenThere: gnats-prs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Copies of bug tracking system messages List-Archive: Date: Sun, 26 May 2002 06:21:00 -0000 X-SW-Source: 2002-q2/txt/msg00016.txt.bz2 >Number: 384 >Category: gnats >Synopsis: mkdb should fail for a remote database >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 26 09:18:30 -0400 2002 >Originator: Lars Henriksen >Release: 4.0-beta1 >Organization: >Environment: >Description: The databases file may describe local as well as remote databases. The mkdb command should only work for local databases. At present the last field of the database entry is used unconditionally. Minimal fix attached. >How-To-Repeat: >Fix: Index: mkdb.sh =================================================================== RCS file: /cvsroot/gnats/gnats/gnats/mkdb.sh,v retrieving revision 1.7 diff -u -r1.7 mkdb.sh --- mkdb.sh 2 Dec 2001 14:39:09 -0000 1.7 +++ mkdb.sh 26 May 2002 12:56:21 -0000 @@ -58,10 +58,10 @@ exit 1; fi -dbdir=`grep "^${database}:" $DATABASES | sed 's/^.*:\([^:]*\)$/\1/'` +dbdir=`grep "^${database}:" $DATABASES | sed -n 's/^'${database}':[^:]*:\([^:]*\)$/\1/p'` if [ -z "${dbdir}" ] then - echo "$prog: No proper entry for \`${database}' in \`$DATABASES'." + echo "$prog: No proper entry for \`${database}' in \`$DATABASES':\n"`grep "^${database}:" $DATABASES` exit 1 fi >Unformatted: _______________________________________________ Gnats-prs mailing list Gnats-prs@gnu.org http://mail.gnu.org/mailman/listinfo/gnats-prs