[PATCH] samba.registry Python 3 compatible and Python 2.6 fixes

Andrew Bartlett abartlet at samba.org
Sat Oct 14 08:03:18 UTC 2017


On Fri, 2017-10-13 at 15:40 +0200, Lumir Balhar via samba-technical
wrote:
> Hello.
> 
> Here is the promised patchset where the warning about unused variable 
> (Python 2.6) is fixed. There is also one patch for pam_wrapper.
> 
> Thank you and have a nice day.
> 
> Lumír

This looks good.  

Reviewed-by: Andrew Bartlett <abartlet at samba.org>

Andreas: Can you re-review the modified patches and push?

Thanks!

Andrew Bartlett

> 
> On 10/12/2017 03:04 PM, Andreas Schneider wrote:
> > On Thursday, 12 October 2017 11:30:28 CEST Lumir Balhar via samba-technical
> > wrote:
> > > Hello.
> > > 
> > > I ported another Python module, samba.registry, to Python 3 compatible
> > > form (patch #1) and I improved its test coverage (patch #2).
> > > 
> > > Everything went well with Python 2.7 and 3.6 but then I found some
> > > issues during testing the ported module with Python 2.6.6 in VM with
> > > fresh CentOS 6 installation.
> > > The second two patches contain fixes for Python 2.6.
> > > 
> > > The first problem I found is in lib/pam_wrapper/python/pypamtest.c where
> > > function PyErr_NewExceptionWithDoc is used, but this function is
> > > available only in Python 2.7 and higher. This bug was probably hidden
> > > because pam_wrapper can be installed as a distribution package. Fixed
> > > with #if/#else in patch 3.
> > 
> > Please also create a patch against:
> > https://git.samba.org/?p=pam_wrapper.git;a=summary
> >   
> > > The second one is in testsuite/unittests/rpc_test_dummy_module.c where I
> > > get an error about undefined kill() function and SIGKILL constant. I
> > > don't know where this bug comes from, but including signal.h header file
> > > fixes it. Fix attached as patch 4.
> > 
> > RB+
> > 
> > Second team member needed for review.
> > 
> > 
> > Cheers,
> > 
> > 
> > 	Andreas
> > 
> > 
> 
> 
-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list