aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-05-15 22:22:46 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-05-15 22:22:46 +0800
commitcee9ec5c6a8ed5c985f116cf9a9b1ee4d6d341d8 (patch)
tree0a0dc66141c4b595189a8869bf3ab55c7c352b11 /net
parent7131ff73508ea5ead65173d5644b47c9034e5350 (diff)
downloadfreebsd-ports-graphics-cee9ec5c6a8ed5c985f116cf9a9b1ee4d6d341d8.tar.gz
freebsd-ports-graphics-cee9ec5c6a8ed5c985f116cf9a9b1ee4d6d341d8.tar.zst
freebsd-ports-graphics-cee9ec5c6a8ed5c985f116cf9a9b1ee4d6d341d8.zip
Fix building under -current
PR: 37964 Submitted by: obraun@informatik.unibw-muenchen.de
Diffstat (limited to 'net')
-rw-r--r--net/gnu-finger/files/patch-ag35
1 files changed, 32 insertions, 3 deletions
diff --git a/net/gnu-finger/files/patch-ag b/net/gnu-finger/files/patch-ag
index 88e34c6f095..c5f76137b1b 100644
--- a/net/gnu-finger/files/patch-ag
+++ b/net/gnu-finger/files/patch-ag
@@ -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;