diff options
author | des <des@FreeBSD.org> | 2000-12-29 11:39:25 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-12-29 11:39:25 +0000 |
commit | 7880bf45e45edc849735ac5e44fdd8f096af7605 (patch) | |
tree | 15263c4a189f689574faf7f73ead59af2f430d55 /usr.bin/finger | |
parent | eb8ba1682cfe5c34d285aa6132c97a3130a0c0d0 (diff) | |
download | FreeBSD-src-7880bf45e45edc849735ac5e44fdd8f096af7605.zip FreeBSD-src-7880bf45e45edc849735ac5e44fdd8f096af7605.tar.gz |
Add support for a .publickey file.
Submitted by: Svein Skogen <tds@nsn.no>
Reviewed by: brian, ru
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/finger.1 | 10 | ||||
-rw-r--r-- | usr.bin/finger/lprint.c | 2 | ||||
-rw-r--r-- | 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" |