Article View: gnu.utils.bug
Article #15GNU finger-1.37 `finger .free' with INFO_IS_DEFAULT
From: John Eaton
Date: Thu, 29 Oct 1992 02:24
Date: Thu, 29 Oct 1992 02:24
58 lines
2096 bytes
2096 bytes
If finger-1.37 is compiled with INFO_IS_DEFAULT, `finger .free'
reports that there is no such user .free. Here is a patch taht fixes
that by moving the test for (is_long_finger && user) after the check
for .free.
diff -rc finger-1.37.orig//src/in.fingerd.c finger-1.37/src/in.fingerd.c
*** finger-1.37.orig//src/in.fingerd.c Mon Oct 26 21:14:19 1992
--- finger-1.37/src/in.fingerd.c Wed Oct 28 19:41:35 1992
***************
*** 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 ----
***************
*** 607,614 ****
}
return;
! }
warn_if_not_recent (HOSTDATA, stream);
f = open (HOSTDATA, O_RDONLY, 0666);
--- 598,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);
--
DEC Fortran brings VAX FORTRAN quality to RISC | John W. Eaton
ULTRIX and DEC OSF/1. -- DEC catalog (1992). | jwe@che.utexas.edu
Technical Details
Message-ID:
<9210290224.AA11341@schoch.che.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!che.utexas.EDU!jweShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!che.utexas.EDU!jwe From: jwe@che.utexas.EDU (John Eaton) Newsgroups: gnu.utils.bug Subject: GNU finger-1.37 `finger .free' with INFO_IS_DEFAULT Message-ID: <9210290224.AA11341@schoch.che.utexas.edu> Date: 29 Oct 92 02:24:52 GMT Article-I.D.: schoch.9210290224.AA11341 Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 58 Approved: bug-gnu-utils@prep.ai.mit.edu