This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author phantal
Recipients phantal
Date 2017-01-13.19:43:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484336628.67.0.439917676346.issue29268@psf.upfronthosting.co.za>
In-reply-to
Content
On all our solaris 10 machines when I run a simple test program it never reports a failure when calling getspnam:

   #include <shadow.h>
   #include <stdio.h>
   int main( int, char** ) {
     spwd *asdf = getspnam( "some_user" );
     if( NULL == sdf ) {
       perror( "getspnam" );
     }
     return 0;
   }

If I run the above program on our linux boxes it fails as expected, but on our solaris machines it produces the same information you'd see running "ypcat passwd | grep some_user".

I suspect either there's a bug in the solaris implementation of getpwnam() or perhaps there's a configuration issue on our solaris machines, though it's also possible this is just how it behaves in Solaris (at least with NIS).

As to whether anything should change for test_spwd -- I suspect this will get closed as "won't fix" but at least this report may help anyone else running into this failure.
History
Date User Action Args
2017-01-13 19:43:48phantalsetrecipients: + phantal
2017-01-13 19:43:48phantalsetmessageid: <1484336628.67.0.439917676346.issue29268@psf.upfronthosting.co.za>
2017-01-13 19:43:48phantallinkissue29268 messages
2017-01-13 19:43:48phantalcreate