finger.c (46662) | finger.c (48566) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 41 unchanged lines hidden (view full) --- 50 The Regents of the University of California. All rights reserved.\n"; 51#endif /* not lint */ 52 53#ifndef lint 54#if 0 55static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95"; 56#else 57static const char rcsid[] = | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 41 unchanged lines hidden (view full) --- 50 The Regents of the University of California. All rights reserved.\n"; 51#endif /* not lint */ 52 53#ifndef lint 54#if 0 55static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95"; 56#else 57static const char rcsid[] = |
58 "$Id: finger.c,v 1.12 1997/07/02 06:34:48 charnier Exp $"; | 58 "$Id: finger.c,v 1.13 1999/05/08 00:46:04 obrien Exp $"; |
59#endif 60#endif /* not lint */ 61 62/* 63 * Finger prints out information about users. It is not portable since 64 * certain fields (e.g. the full user name, office, and phone numbers) are 65 * extracted from the gecos field of the passwd file which other UNIXes 66 * may not have or may use for other things. --- 136 unchanged lines hidden (view full) --- 203 /* 204 * Assign explicit "large" format if names given and -s not 205 * explicitly stated. Force the -l AFTER we get names so any 206 * remote finger attempts specified won't be mishandled. 207 */ 208 if (!sflag) 209 lflag = 1; /* if -s not explicit, force -l */ 210 } | 59#endif 60#endif /* not lint */ 61 62/* 63 * Finger prints out information about users. It is not portable since 64 * certain fields (e.g. the full user name, office, and phone numbers) are 65 * extracted from the gecos field of the passwd file which other UNIXes 66 * may not have or may use for other things. --- 136 unchanged lines hidden (view full) --- 203 /* 204 * Assign explicit "large" format if names given and -s not 205 * explicitly stated. Force the -l AFTER we get names so any 206 * remote finger attempts specified won't be mishandled. 207 */ 208 if (!sflag) 209 lflag = 1; /* if -s not explicit, force -l */ 210 } |
211 if (entries) | 211 if (entries) { |
212 if (lflag) 213 lflag_print(); 214 else 215 sflag_print(); | 212 if (lflag) 213 lflag_print(); 214 else 215 sflag_print(); |
216 } |
|
216 return (0); 217} 218 219static void 220loginlist() 221{ 222 register PERSON *pn; 223 DBT data, key; --- 123 unchanged lines hidden --- | 217 return (0); 218} 219 220static void 221loginlist() 222{ 223 register PERSON *pn; 224 DBT data, key; --- 123 unchanged lines hidden --- |