summaryrefslogtreecommitdiff
path: root/source/n/bsd-finger/bsd-finger-0.16-pts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bsd-finger/bsd-finger-0.16-pts.patch')
-rw-r--r--source/n/bsd-finger/bsd-finger-0.16-pts.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/n/bsd-finger/bsd-finger-0.16-pts.patch b/source/n/bsd-finger/bsd-finger-0.16-pts.patch
new file mode 100644
index 00000000..abae793e
--- /dev/null
+++ b/source/n/bsd-finger/bsd-finger-0.16-pts.patch
@@ -0,0 +1,16 @@
+--- bsd-finger-0.16/finger/util.c.pts Tue Sep 28 18:53:58 1999
++++ bsd-finger-0.16/finger/util.c Tue Dec 21 14:12:56 1999
+@@ -71,8 +71,13 @@
+ }
+ snprintf(tbuf, TBUFLEN, "%s/%s", _PATH_DEV, w->tty);
+ if (stat(tbuf, &sb) < 0) {
++ switch (errno) {
++ case ENOENT:
++ break;
++ default:
+ eprintf("finger: %s: %s\n", tbuf, strerror(errno));
+ return;
++ }
+ }
+ w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
+