summaryrefslogtreecommitdiff
path: root/debian/patches/add_face_support.patch
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-02-08 05:29:44 +0000
committerKatolaZ <katolaz@freaknet.org>2019-02-08 05:29:44 +0000
commiteef8eb23feb14ac4f85e07b885b7e2cbe9cf74a9 (patch)
tree8cd2ab6b9ecd2f44a9fbb778a77b36b396a98b22 /debian/patches/add_face_support.patch
parent9696842a61b6608f10633a984732a145c4fe5c68 (diff)
add support for ~/.face
Diffstat (limited to 'debian/patches/add_face_support.patch')
-rw-r--r--debian/patches/add_face_support.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/add_face_support.patch b/debian/patches/add_face_support.patch
new file mode 100644
index 0000000..55fb391
--- /dev/null
+++ b/debian/patches/add_face_support.patch
@@ -0,0 +1,22 @@
+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,8 @@
+ * shell
+ * office, office phone, home phone if available
+ */
++ show_text(pn->dir, _PATH_FACE, "~~~~~~~~~~~~~~~~~~~~\n");
++ 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);