Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 1996 08:58:36 -0800 (PST)
From:      Bill Paul <wpaul>
To:        peter@spinner.DIALix.COM (Peter Wemm)
Cc:        bugs@freebsd.org
Subject:   Re: aieee!! nis gone to hell in 2.2... :-/
Message-ID:  <199611151658.IAA29325@freefall.freebsd.org>
In-Reply-To: <199611151618.AAA10171@spinner.DIALix.COM> from "Peter Wemm" at Nov 16, 96 00:18:25 am

next in thread | previous in thread | raw e-mail | index | archive | help
[chop]

> The debug code that printed this in yp_submit():
>         /* Get NIS master server name */
>         
>         warnx("pw_shell 1: '%s':%d", pw->pw_shell, strlen(pw->pw_shell));
>         
>         master = get_yp_master(1);
>         
>         warnx("pw_shell 2: '%s':%d", pw->pw_shell, strlen(pw->pw_shell));
> 
> It's not looking real good for get_yp_master()...
> 
> Cheers,
> -Peter
>

Rrr... I'm in the same area. The problem is getrpcport() (that's buried
inside get_yp_master()). getrpcport calls gethostname(), and I think
it's gethostname that's clobbering memory somehow. This is something I
stumbled onto a long time ago. I thought I had worked around it, but
apparently I was wrong. I never did figure out why gethostname() was
zonking my pw structs, so I avoided calling gethostname() until after
I had copied it.

The weird thing is: I just linked a static version of chpass for testing
and _that_ executable works. This is damn strange. I'm starting to wonder
if maybe there's a deeper problem somewhere.

-Bill



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