Ross Lagerwall <rosslagerw...@gmail.com> added the comment:

It seems to work fine on OpenIndiana (running normally or as root).

According to the posix specification, "It is implementation-defined whether 
getgroups() also returns the effective group ID in the grouplist array."

But, id -G prints all group IDs. Perhaps, it failed because 0 was the effective 
gid & it was included by "id -G" but wasn't being returned by posix.getgroups().

This fix changes the test to compare the output from "id -G" with the union of 
getgroups() & getegid().

----------
keywords: +patch
Added file: http://bugs.python.org/file20353/10822.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to