From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3308 invoked from network); 28 Mar 2002 03:24:41 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 28 Mar 2002 03:24:41 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qQWH-0002PC-00; Wed, 27 Mar 2002 22:24:09 -0500 Received: from natint.juniper.net ([207.17.136.129] helo=merlot.juniper.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qQUG-0002IV-00 for ; Wed, 27 Mar 2002 22:22:04 -0500 Received: from juniper.net (hatzis-bsd.juniper.net [172.17.12.59]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id g2S3M3T25500 for ; Wed, 27 Mar 2002 19:22:03 -0800 (PST) (envelope-from hatzis@juniper.net) Message-ID: <3CA28C27.6010201@juniper.net> From: Mel Hatzis User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.8) Gecko/20020206 X-Accept-Language: en-us MIME-Version: 1.0 To: help-gnats@gnu.org Subject: use of GNATSDB Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: help-gnats-admin@gnu.org Errors-To: help-gnats-admin@gnu.org X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion about GNU GNATS List-Archive: Date: Wed, 27 Mar 2002 19:24:00 -0000 X-SW-Source: 2002-q1/txt/msg00148.txt.bz2 I'm trying to setup a separate database instance by adding a line into the share/gnats/databases file and setting the GNATSDB env variable to point to it. I can successfully 'telnet localhost port#' and, say, lockdb, but when I try using pr-edit it ends up locking the default database. Grokking through the code, I find that client_init_gnats in client.c is invoking 'chdb default' because the scanenv function always sets database to 'default' during initialization. My question is..."wouldn't it make more sense to do the equivalent of 'database = getenv ("GNATSDB")' rather than blindly setting it to 'default'? -- Mel Hatzis Juniper Networks Inc. _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats