Bug 113207 - file gives no error message if you try to look at a file you don't have permissions to read
file gives no error message if you try to look at a file you don't have permi...
Product: Fedora
Classification: Fedora
Component: file (Show other bugs)
i686 Linux
low Severity low
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-01-09 13:23 EST by Telsa Gwynne
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-01-19 20:20:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Telsa Gwynne 2004-01-09 13:23:04 EST
[hobbit@aloss hobbit]$ rpm -q file
[hobbit@aloss hobbit]$ file /etc/sysconfig/rhn
/etc/sysconfig/rhn: directory
[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
permission denied.
If it's a GNU error (and fix), perhaps upgrading to that?
Comment 1 Jeff Johnson 2004-01-09 16:19:16 EST
Reproduced with file-4.06 in fc2.
Comment 2 Jeff Johnson 2004-01-19 20:20:57 EST
Fixed in file-4.07-1. Thanks for noticing.

Note You need to log in before you can comment on or make changes to this bug.