[6724] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Cygnus kerberos on hpux9.04

daemon@ATHENA.MIT.EDU (Anurag Shankar)
Wed Feb 21 16:11:57 1996

To: kerberos@MIT.EDU
Date: 21 Feb 1996 20:19:28 GMT
From: anurag@chandra.cis.brown.edu (Anurag Shankar)
Reply-To: anurag@chandra.cis.brown.edu

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

home help back first fref pref prev next nref lref last post