Subject: rlogind problem?
To: None <current-users@NetBSD.ORG>
From: Andrew Gillham <email@example.com>
Date: 04/13/1995 22:51:17
I'm having a wierd problem with rlogin between a couple of
NetBSD/i386 (-current as of yesterday) boxes. I can do
a "rlogin mysun" from either and connect to the sun, but
if I try to rlogin from one NetBSD pc to the other (no matter which way)
I get " rcmd: host1: Undefined error: 0" and the rlogind core
dumps. If I am root, I don't have the problem. There are no .rhost
files and hosts.equiv has both NetBSD machines in it. (on both PCs)
Any pointers would be helpful!
Here is what gdb says about the core file:
ghost# gdb -c rlogind.core
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.11 (i386-netbsd), Copyright 1993 Free Software Foundation, Inc.
Core was generated by `rlogind'.
Program terminated with signal 6, Abort trap.
#0 0x1005b4a7 in ?? ()
(gdb) file rlogind
Reading symbols from rlogind...done.
#0 0x1005b4a7 in end ()
#1 0x1005ac1d in end ()
#2 0x1002bd04 in end ()
#3 0x1002ba3b in end ()
#4 0x24be in do_rlogin (dest=0x1006a060) at rlogind.c:489
#5 0x1b80 in doit (f=0, fromp=0xf7bfd92c) at rlogind.c:222
#6 0x18fd in main (argc=1, argv=0xf7bfd964) at rlogind.c:149
(gdb) list 489
484 if (pwd == NULL)
485 return (-1);
486 if (pwd->pw_uid == 0)
487 return (-1);
488 /* XXX why don't we syslog() failure? */
489 return (iruserok(dest->sin_addr.s_addr, 0, rusername, lusername));
493 getstr(buf, cnt, errmsg)