![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python-PasteScript for openSUSE:Factory checked in at 2012-03-07 13:44:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PasteScript (Old) and /work/SRC/openSUSE:Factory/.python-PasteScript.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-PasteScript", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-PasteScript/python-PasteScript.changes 2012-02-02 18:00:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-PasteScript.new/python-PasteScript.changes 2012-03-07 13:44:56.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Mar 6 10:59:39 UTC 2012 - bwiedemann@suse.com + +- drop groups properly (fixes bnc#748875) + +------------------------------------------------------------------- New: ---- ianb-pastescript-a19e462769b4.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PasteScript.spec ++++++ --- /var/tmp/diff_new_pack.Wy7LHO/_old 2012-03-07 13:44:57.000000000 +0100 +++ /var/tmp/diff_new_pack.Wy7LHO/_new 2012-03-07 13:44:57.000000000 +0100 @@ -16,6 +16,7 @@ # + Name: python-PasteScript Version: 1.7.5 Release: 0 @@ -24,6 +25,7 @@ License: MIT Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz +Patch0: ianb-pastescript-a19e462769b4.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-PasteDeploy BuildRequires: python-devel @@ -48,6 +50,7 @@ %prep %setup -q -n PasteScript-%{version} +%patch0 mv docs/_build docs/html # Proper name for HTML docs sed -i "1d" tests/test_logging_config.py # Fix non-executable script ++++++ ianb-pastescript-a19e462769b4.diff ++++++ diff -ru paste/script/serve.py paste/script/serve.py --- paste/script/serve.py 2010-11-17 19:38:52.000000000 +0100 +++ paste/script/serve.py 2012-02-08 06:30:50.000000000 +0100 @@ -497,6 +497,11 @@ if self.verbose > 0: print 'Changing user to %s:%s (%s:%s)' % ( user, group or '(unknown)', uid, gid) + if hasattr(os, 'initgroups'): + os.initgroups(user, gid) + else: + os.setgroups([e.gr_gid for e in grp.getgrall() + if user in e.gr_mem] + [gid]) if gid: os.setgid(gid) if uid: -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org