summaryrefslogtreecommitdiff
path: root/usr.bin/finger
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-12-29 11:39:25 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-12-29 11:39:25 +0000
commitd17485b639a859edcc72dcd981520aebd8b6f6aa (patch)
tree1b4674b675e7aea4cd2ac076a48949b88e7e8184 /usr.bin/finger
parentb799efd8af09dee4e371f4a20ec25766e07928fb (diff)
downloadsrc-test2-d17485b639a859edcc72dcd981520aebd8b6f6aa.tar.gz
src-test2-d17485b639a859edcc72dcd981520aebd8b6f6aa.zip
Notes
Diffstat (limited to 'usr.bin/finger')
-rw-r--r--usr.bin/finger/finger.110
-rw-r--r--usr.bin/finger/lprint.c2
-rw-r--r--usr.bin/finger/pathnames.h1
3 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/finger/finger.1 b/usr.bin/finger/finger.1
index ecd5d09c065f..a97b01428c9f 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 11da68617165..bd321e1c78c3 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 334d499d99b5..404326ceec43 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"