Article View: gnu.utils.bug
Article #1036Finger 1.3.7 bugfix/enhancement in .free and INFO_IS_DEFAULT
From: John Ladwig
Date: Fri, 06 Nov 1992 17:52
Date: Fri, 06 Nov 1992 17:52
67 lines
2213 bytes
2213 bytes
Yowie zowie - GNU finger is really nice..
One minor quibble:
The ".free" special user is broken when this macro is defined.
The test for 'wide' finger occurs *before* the test for the .free
Here's the particulars:
* The GNU Finger version and where you obtained the distribution.
1.3.7 - from a mirror of prep.ai.mit.edu
* Changes you made to the GNU Finger configuration files.
#define INFO_IS_DEFAULT /* */
* Any changes you have made to the source code or installation
procedures.
Here is a patch to fix:
*** 1.0 1992/11/06 17:30:14
--- in.fingerd.c 1992/11/06 17:37:23
***************
*** 445,459 ****
return;
}
- /* Is this a `wide' (long) finger? */
- if (is_long_finger && user)
- {
- if (!long_finger (user, stream, 0))
- no_such_user (user, this_host, stream);
-
- return;
- }
-
/* If the user wants to know about free machines then look the information
up in the database kept on the availability of hosts. Print statistics
that seem strange, like if the file of host information hasn't been
--- 445,450 ----
***************
*** 609,614 ****
--- 600,614 ----
return;
}
+ /* Is this a `wide' (long) finger? */
+ if (is_long_finger && user)
+ {
+ if (!long_finger (user, stream, 0))
+ no_such_user (user, this_host, stream);
+
+ return;
+ }
+
warn_if_not_recent (HOSTDATA, stream);
f = open (HOSTDATA, O_RDONLY, 0666);
--
UMN Department of Soil Science; St. Paul, MN
Internet: john.ladwig@soils.umn.edu Fidonet: John Ladwig 1:282/8
jladwig@torpedo.forestry.umn.edu
Technical Details
Message-ID:
<9211061752.AA21814@saturn>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!soils.umn.EDU!jladwigShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!soils.umn.EDU!jladwig From: jladwig@soils.umn.EDU (John Ladwig) Subject: Finger 1.3.7 bugfix/enhancement in .free and INFO_IS_DEFAULT Message-ID: <9211061752.AA21814@saturn> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 6 Nov 1992 17:52:24 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 68