Fix some warnings caused by changes in access_euid(). #4402