By default, permission checks in perl only use the normal mode bits,
instead of the access(2) function. Adding "use filetest 'access';" to
the program, or the equivalent "-mfiletest=access" to the commandline,
we get proper behaviour when ACLs are involved.