Is it a bug of mock?

Kirby Zhou kirbyzhou at sogou-inc.com
Tue Jan 17 12:25:28 UTC 2012


/usr/lib/python2.6/site-packages/mockbuild/uid.py
mock-1.1.18-1.el6.noarch

ccache plugin calls changeOwner to take the ownership of ccache directory,
but why set gid to uid?

70     decorate(traceLog())
71     def changeOwner(self, path, uid=None, gid=None):
72         self._elevatePrivs()
73         if uid is None:
74             uid = self.unprivUid
75         if gid is None:
76             gid = uid
77         os.chown(path, uid, gid)

Regards
Kirby Zhou
+86 (10) 6272 8261

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/buildsys/attachments/20120117/b223350a/attachment.html>


More information about the buildsys mailing list