Re: Further adventures in the land of 64-bit linux

Guido van Rossum <[email protected]> Tue, 17 Sep 2002 09:33:39 -0400
Newsgroups gmane.comp.python.snake-farm.user
Message-ID <[email protected]>
> Surprising noone in particular, test_pwd broke in the same way.
> 
>   (gdb) f 5
>   #5  0x200009ff284 in mkpwent (p=0x200008b3308)
> 	  at /mp/slaskdisk/tmp/quest/python/dist/src/Modules/pwdmodule.c:59
>   59              SETS(setIndex++, p->pw_passwd);
>   (gdb) print p->pw_passwd
>   $1 = 0x0
> 
> Aha! Lookie here:
> 
>   (gdb) print p->pw_name 
>   $4 = 0x1202faec0 "+"
> 
> It's the "NIS-thingie" in /etc/passwd that is the culprit. We may want
> to handle that some way?

Hm.  AFAIK this code is not reading and parsing /etc/passwd directly,
it's using getpwd() for that.  Why doesn't getpwd() process that
cookie???  I think it's supposed to!  What does the manual on your
system say?  (I don't have NIS set up anywhere here so I can't check.)

--Guido van Rossum (home page: http://www.python.org/~guido/)