Red Hat Bugzilla – Bug 159986
Check if running as root
Last modified: 2007-04-18 13:27:43 EDT
mock is unable to build packages when called as the root user.
Thus it would be advisable to check if mock is being called by uid == 0 and bail
out if that's the case.
Fixed in CVS