Thank you for opening this bug and helping make Ubuntu better.
As you state, root has access to all files; so '-r <write-only file'
will succeed. For the entries on /sys: these are not real files, but
interfaces to kernel space, with access controlled by the kernel itself
(an analogy would be to hardware registers where cyou can only read, or
only write). This is the expected behaviour.
So, closing as not-a-bug (invalid). Please reopen if you disagree.
** Changed in: coreutils (Ubuntu)
Status: New => Invalid
--
test -r does not work for root on write-only files
https://bugs.launchpad.net/bugs/611295
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs