Received: from SOUTH-STATION-ANNEX.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA05395; Sat, 24 Feb 96 16:22:42 EST
Received: by MIT.EDU 
	id AB05184; Sat, 24 Feb 96 16:22:12 EST
Date: Sat, 24 Feb 96 16:22:12 EST
From: MAILER-DAEMON@MIT.EDU (Mail Delivery Subsystem)
Subject: Returned mail: Cannot send message for 3 days
Message-Id: <9602242122.AB05184@MIT.EDU>
To: <owner-kerberos@MIT.EDU>
To: hartmans@PO9.LOCAL
To: proven@PO7.LOCAL
To: tytso@PO9.LOCAL
To: basch@lehman.com
To: jis@E40-PO.LOCAL
To: tlyu@PO9.LOCAL

   ----- Transcript of session follows -----
421 sci.uma.es.tcp... Deferred: Address family not supported by protocol family
451 jcrey@sci.uma.es... Cannot send message for 3 days
jcrey@sci.uma.es... Cannot send message for 3 days

   ----- Unsent message follows -----
Received: from pad-thai.cam.ov.com by MIT.EDU with SMTP
	id AA17971; Wed, 21 Feb 96 15:58:43 EST
Received:  by pad-thai.cam.ov.com (8.6.12/)
	id <QAA13725@pad-thai.cam.ov.com>; Wed, 21 Feb 1996 16:02:49 -0500
Received: from GATEWAY by pad-thai.cam.ov.com with netnews
	for kerberos-wrapper@cam.ov.com (kerberos@mit.edu)
To: kerberos@MIT.EDU
Date: 21 Feb 1996 20:19:28 GMT
From: anurag@chandra.cis.brown.edu (Anurag Shankar)
Message-Id: <4gfuog$9ba@cocoa.brown.edu>
Organization: Computing and Information Services, Brown University
Sender: usenet@cam.ov.com
References: <4g5cev$1s2@cocoa.brown.edu>
Reply-To: anurag@chandra.cis.brown.edu
Subject: Re: Cygnus kerberos on hpux9.04

Anurag Shankar (anurag@chandra.cis.brown.edu) wrote:
: I just finished successfully making cygnus' free kerberos V4 on
: the a hp 9000 series 800 box running hpux9.04.  When I connect
: to the box using ktelnet from another machine, I get the following
: message after it logs me in:

: Warning: no access to tty; thus no job control in this shell...

: Any ideas why?

: Anurag_Shankar@brown.edu

Many thanks to Fergus Clancy of Manchester, England for solving
the problem.  The original sys_term.c in the cygnus distribution 
seems to be broken for hpux.  The diff between the original and
the one which I got to work is appended below.

195,197d194
< #ifdef __hpux
< #define my_setpgrp(a,b) setsid()
< #endif
1278c1275
<               setsid();
---
>               setpgrp();
1333,1334c1330
< # if defined TIOCSCTTY && !defined __hpux
< /* The next ioctl is a noop on HPUX */
---
> # ifdef       TIOCSCTTY
1335a1332,1334
> # ifndef __hpux
>               /* On HP/UX TIOCSCTTY only works on streams.  Calling
>                    it shouldn't hurt, though.  */
1336a1336
> # endif
1337a1338,1346
> #  if defined(CRAY)
>       /*
>        * Close the hard fd to /dev/ttypXXX, and re-open through
>        * the indirect /dev/tty interface.
>        */
>       close(t);
>       if ((t = open("/dev/tty", O_RDWR)) < 0)
>               fatalperror(net, "open(/dev/tty)");
> #  endif
1346d1354
< #if !defined __hpux
1348d1355
< #endif

--
Anurag Shankar, Senior Systems Programmer          (Anurag_Shankar@Brown.EDU)
Computing & Information Services, Brown University     401-863-7546 (work)
Campus Box 1885, Providence, RI 02912-1885             401-863-7329 (fax)
WWW home page: http://chandra.cis.brown.edu
