my own fork of Debian's bsd-finger package
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
Description: show ~/.face if available
|
|
|
|
Author: Vincenzo 'KatolaZ' Nicosia <katolaz@freaknet.org>
|
|
|
|
|
|
|
|
--- a/finger/lprint.c
|
|
|
|
+++ b/finger/lprint.c
|
|
|
|
@@ -62,6 +62,7 @@
|
|
|
|
#define _PATH_PLAN ".plan"
|
|
|
|
#define _PATH_PROJECT ".project"
|
|
|
|
#define _PATH_PGPKEY ".pgpkey"
|
|
|
|
+#define _PATH_FACE ".face"
|
|
|
|
|
|
|
|
void
|
|
|
|
lflag_print(void)
|
|
|
|
@@ -99,6 +100,9 @@
|
|
|
|
* shell
|
|
|
|
* office, office phone, home phone if available
|
|
|
|
*/
|
|
|
|
+ xprintf("~~~~~~~~~~~~~~~~~~~~\n");
|
|
|
|
+ if(show_text(pn->dir, _PATH_FACE, ""))
|
|
|
|
+ xprintf("~~~~~~~~~~~~~~~~~~~~\n");
|
|
|
|
xprintf("Login: %-15s\t\t\tName: %s\nDirectory: %-25s",
|
|
|
|
pn->name, pn->realname ? pn->realname : "", pn->dir);
|
|
|
|
xprintf("\tShell: %-s\n", *pn->shell ? pn->shell : _PATH_BSHELL);
|