|
Lines 1-6
Link Here
|
| 1 |
--- src/fingerd.c.orig Sun Oct 29 00:12:52 1992 |
1 |
--- src/fingerd.c.orig Wed Oct 28 15:12:52 1992 |
| 2 |
+++ src/fingerd.c Sun Jan 15 19:19:46 1998 |
2 |
+++ src/fingerd.c Sat May 11 23:41:11 2002 |
| 3 |
@@ -145,7 +145,7 @@ |
3 |
@@ -110,7 +110,7 @@ |
|
|
4 |
int nofork = 0; |
| 5 |
|
| 6 |
/* The output stream for debugging. */ |
| 7 |
-FILE *debug_output = stderr; |
| 8 |
+FILE *debug_output = NULL; |
| 9 |
|
| 10 |
/* Our in RAM database of user/host mappings. */ |
| 11 |
FINGER_PACKET **host_packets = (FINGER_PACKET **)NULL; |
| 12 |
@@ -139,13 +139,13 @@ |
| 13 |
char *serverhost, *this_host; |
| 14 |
int arg_index = 1, optc; |
| 15 |
|
| 16 |
- |
| 17 |
+ debug_output = stderr; |
| 18 |
allow_time_outs = 1; |
| 19 |
|
| 4 |
default_error_handling (argv[0]); |
20 |
default_error_handling (argv[0]); |
| 5 |
|
21 |
|
| 6 |
/* Parse arguments. */ |
22 |
/* Parse arguments. */ |
|
Lines 9-11
Link Here
|
| 9 |
switch (optc) |
25 |
switch (optc) |
| 10 |
{ |
26 |
{ |
| 11 |
case 'd': |
27 |
case 'd': |
|
|
28 |
@@ -670,8 +670,11 @@ |
| 29 |
|
| 30 |
for (i = 0; packets[i]; i++) |
| 31 |
{ |
| 32 |
- if (debugging) |
| 33 |
+ if (debugging) { |
| 34 |
+ if (debug_output == NULL) |
| 35 |
+ debug_output = stderr; |
| 36 |
print_packet (packets[i], debug_output); |
| 37 |
+ } |
| 38 |
|
| 39 |
if (packets[i]->idle_time < machine_idle_time) |
| 40 |
machine_idle_time = packets[i]->idle_time; |