From 7880bf45e45edc849735ac5e44fdd8f096af7605 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 29 Dec 2000 11:39:25 +0000 Subject: Add support for a .publickey file. Submitted by: Svein Skogen Reviewed by: brian, ru --- usr.bin/finger/finger.1 | 10 ++++++---- usr.bin/finger/lprint.c | 2 ++ usr.bin/finger/pathnames.h | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/usr.bin/finger/finger.1 b/usr.bin/finger/finger.1 index ecd5d09c..a97b014 100644 --- a/usr.bin/finger/finger.1 +++ b/usr.bin/finger/finger.1 @@ -95,9 +95,10 @@ described for the option as well as the user's home directory, home phone number, login shell, mail status, and the contents of the files .Dq Pa .forward , -.Dq Pa .plan -and +.Dq Pa .plan , .Dq Pa .project +and +.Dq Pa .publickey from the user's home directory. .Pp If idle time is at least a minute and less than a day, it is @@ -130,9 +131,10 @@ option of .Nm from displaying the contents of the .Dq Pa .forward , -.Dq Pa .plan -and +.Dq Pa .plan , .Dq Pa .project +and +.Dq Pa .publickey files. .It Fl m Prevent matching of diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c index 11da686..bd321e1 100644 --- a/usr.bin/finger/lprint.c +++ b/usr.bin/finger/lprint.c @@ -95,6 +95,8 @@ lflag_print() (void)show_text(pn->dir, _PATH_PROJECT, "Project"); if (!show_text(pn->dir, _PATH_PLAN, "Plan")) (void)printf("No Plan.\n"); + (void)show_text(pn->dir, + _PATH_PUBLICKEY, "Public key"); } } } diff --git a/usr.bin/finger/pathnames.h b/usr.bin/finger/pathnames.h index 334d499..404326c 100644 --- a/usr.bin/finger/pathnames.h +++ b/usr.bin/finger/pathnames.h @@ -31,6 +31,7 @@ #define _PATH_FORWARD ".forward" #define _PATH_PLAN ".plan" #define _PATH_PROJECT ".project" +#define _PATH_PUBLICKEY ".publickey" #ifndef _PATH_FINGERCONF #define _PATH_FINGERCONF "/etc/finger.conf" -- cgit v1.1