bug#54338: enhancement (documentation): explain permission tests in "test"

2022-03-11 Thread Pádraig Brady
On 11/03/2022 10:42, Ulrich Windl wrote: I noticed that "test -r file" returns success when called as root for a file with these permissions: "--w---" (see also https://stackoverflow.com/q/71435657/6607497) The documentation simply states: ‘-r FILE’ True if FILE exists and read permiss

bug#54338: enhancement (documentation): explain permission tests in "test"

2022-03-11 Thread Ulrich Windl
I noticed that "test -r file" returns success when called as root for a file with these permissions: "--w---" (see also https://stackoverflow.com/q/71435657/6607497) The documentation simply states: ‘-r FILE’ True if FILE exists and read permission is granted. Doing an strace it seems st