Red Hat Bugzilla – Bug 113207
file gives no error message if you try to look at a file you don't have permissions to read
Last modified: 2007-11-30 17:10:35 EST
[hobbit@aloss hobbit]$ rpm -q file
[hobbit@aloss hobbit]$ file /etc/sysconfig/rhn
[hobbit@aloss hobbit]$ file /etc/sysconfig/rhn/up2date
[hobbit@aloss hobbit]$ ls -l /etc/sysconfig/rhn/up2date
-rw------- 1 root root 3436 Rha 3 18:00
[hobbit@aloss hobbit]$ LANG="C" file /etc/sysconfig/rhn/up2date
(That last just to check it wasn't some locale thing)
There is no "regular file: no read permission" error coming up
as appears on Debian's file command (file-4.06).
An error message of some sort would be nice, even if it is is just
If it's a GNU error (and fix), perhaps upgrading to that?
Reproduced with file-4.06 in fc2.
Fixed in file-4.07-1. Thanks for noticing.