zsh-workers
 help / color / mirror / code / Atom feed
* Some utmp feature fixes for WATCH
@ 1996-06-24 17:18 Janos Farkas
  0 siblings, 0 replies; only message in thread
From: Janos Farkas @ 1996-06-24 17:18 UTC (permalink / raw)
  To: zsh-workers


[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;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-24 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-24 17:18 Some utmp feature fixes for WATCH Janos Farkas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).