eagle_redirect: handle chmod()