zsh-workers
 help / color / mirror / code / Atom feed
From: Janos Farkas <chexum@shadow.banki.hu>
To: zsh-workers@math.gatech.edu
Subject: Some utmp feature fixes for WATCH
Date: Mon, 24 Jun 1996 19:18:02 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.LNX.3.93.960624191456.7983C-100000@shadow.banki.hu> (raw)


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



                 reply	other threads:[~1996-06-24 17:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.93.960624191456.7983C-100000@shadow.banki.hu \
    --to=chexum@shadow.banki.hu \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).