From lizard@informatik.unibw-muenchen.de  Sat May 11 15:00:19 2002
Return-Path: <lizard@informatik.unibw-muenchen.de>
Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBW-Muenchen.de [137.193.11.27])
	by hub.freebsd.org (Postfix) with ESMTP id 41A4C37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 May 2002 15:00:14 -0700 (PDT)
Received: from nemesis.informatik.unibw-muenchen.de (nemesis.Informatik.UniBw-Muenchen.de [137.193.60.30])
	by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id g4BLm0t09102
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 May 2002 23:48:00 +0200 (MEST)
Received: from localhost (localhost.informatik.unibw-muenchen.de [127.0.0.1])
	by nemesis.informatik.unibw-muenchen.de (Postfix) with ESMTP id BAF925A548
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 May 2002 23:47:58 +0200 (CEST)
Received: by nemesis.informatik.unibw-muenchen.de (Postfix, from userid 1001)
	id 89C805A547; Sat, 11 May 2002 23:47:57 +0200 (CEST)
Message-Id: <20020511214757.89C805A547@nemesis.informatik.unibw-muenchen.de>
Date: Sat, 11 May 2002 23:47:57 +0200 (CEST)
From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix build on -current: net/gnu-finger --- bento error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37964
>Category:       ports
>Synopsis:       Fix build on -current: net/gnu-finger --- bento error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 11 15:10:03 PDT 2002
>Closed-Date:    Wed May 15 07:23:00 PDT 2002
>Last-Modified:  Wed May 15 07:23:00 PDT 2002
>Originator:     Oliver Braun
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386


>Description:

fix "stderr / initializer element is not constant" issue

Regards,
         Olli
>How-To-Repeat:
>Fix:

diff -ruN gnu-finger.old/files/patch-ag gnu-finger/files/patch-ag
--- gnu-finger.old/files/patch-ag	Mon Feb  2 04:38:32 1998
+++ gnu-finger/files/patch-ag	Sat May 11 23:42:30 2002
@@ -1,6 +1,22 @@
---- src/fingerd.c.orig	Sun Oct 29 00:12:52 1992
-+++ src/fingerd.c	Sun Jan 15 19:19:46 1998
-@@ -145,7 +145,7 @@
+--- src/fingerd.c.orig	Wed Oct 28 15:12:52 1992
++++ src/fingerd.c	Sat May 11 23:41:11 2002
+@@ -110,7 +110,7 @@
+ int nofork = 0;
+ 
+ /* The output stream for debugging. */
+-FILE *debug_output = stderr;
++FILE *debug_output = NULL;
+ 
+ /* Our in RAM database of user/host mappings. */
+ FINGER_PACKET **host_packets = (FINGER_PACKET **)NULL;
+@@ -139,13 +139,13 @@
+   char *serverhost, *this_host;
+   int arg_index = 1, optc;
+ 
+-
++  debug_output = stderr;
+   allow_time_outs = 1;
+ 
    default_error_handling (argv[0]);
  
    /* Parse arguments. */
@@ -9,3 +25,16 @@
      switch (optc)
        {
        case 'd':
+@@ -670,8 +670,11 @@
+  
+       for (i = 0; packets[i]; i++)
+ 	{
+-	  if (debugging)
++	  if (debugging) {
++          if (debug_output == NULL)
++            debug_output = stderr;
+ 	    print_packet (packets[i], debug_output);
++        }
+ 
+ 	  if (packets[i]->idle_time < machine_idle_time)
+ 	    machine_idle_time = packets[i]->idle_time;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed May 15 07:22:52 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37964 
>Unformatted:
