Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 1996 21:00:06 -0800 (PST)
From:      pusateri@jnx.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/1965: MH command rcvtty broken
Message-ID:  <199611060500.VAA16597@freefall.freebsd.org>
Resent-Message-ID: <199611060510.VAA17230@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1965
>Category:       ports
>Synopsis:       MH command rcvtty broken
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov  5 21:10:01 PST 1996
>Last-Modified:
>Originator:     Tom Pusateri
>Organization:
Juniper Networks
>Release:        2.2-960612-SNAP
>Environment:
FreeBSD extreme.jcmax.com 2.2-960612-SNAP FreeBSD 2.2-960612-SNAP #0: Thu Sep 26 17:09:36 EDT 1996     pusateri@extreme.jcmax.com:/usr/src/sys/compile/EXTREME  i386

>Description:
/usr/local/lib/mh/rcvtty exits with error status 1.
>How-To-Repeat:
cat "your favorite mail message" | /usr/local/lib/mh/rcvtty

and nothing will happen (no message line appears).
>Fix:
*** rcvtty.c.orig       Tue Nov  5 23:52:58 1996
--- rcvtty.c    Tue Nov  5 23:07:26 1996
***************
*** 158,164 ****
  
      user = getusr ();
  #ifndef       TTYD
!     if ((uf = fopen ("/etc/utmp", "r")) == NULL)
        exit (RCV_MBX);
      while (fread ((char *) &ut, sizeof ut, 1, uf) == 1)
        if (ut.ut_name[0] != 0
--- 158,164 ----
  
      user = getusr ();
  #ifndef       TTYD
!     if ((uf = fopen (_PATH_UTMP, "r")) == NULL)
        exit (RCV_MBX);
      while (fread ((char *) &ut, sizeof ut, 1, uf) == 1)
        if (ut.ut_name[0] != 0

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611060500.VAA16597>