Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Some utmp feature fixes for WATCH
- X-seq: zsh-workers 1432
- From: Janos Farkas <chexum@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Some utmp feature fixes for WATCH
- Date: Mon, 24 Jun 1996 19:18:02 +0200 (MET DST)
[Part 2 of 2 from my just-found forgotten bug list :)]
With the WATCH feature, and without this patch, I used to get messages
like:
root has logged off 2 from .
has logged on 2 from .
has logged off p1 from somehost.
someuser has logged on p1 from somehost.
This clearly depends on the utmp-managing programs, but
I think it's correct to ignore the entries which do not
contain a name.
Janos
diff -urN zsh-2.6-beta21.orig/Src/watch.c zsh-2.6-beta21/Src/watch.c
--- zsh-2.6-beta21.orig/Src/watch.c Mon May 6 16:08:59 1996
+++ zsh-2.6-beta21/Src/watch.c Sun Jun 23 22:56:56 1996
@@ -274,6 +274,9 @@
char *v, *vv, sav;
int bad;
+ if (*u->ut_name == 0)
+ return;
+
if (*w && !strcmp(*w, "all")) {
(void)watchlog2(inout, u, fmt, 1, 0);
return;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author