Apply fix for static analysis (scan-build) detection of a potential
security issue (not checking the return value from setuid).