Whamcloud - gitweb
blkid: Keep cached filesystem information on EACCES and ENOENT errors
authorTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2008 23:22:49 +0000 (19:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 21 Apr 2008 23:22:49 +0000 (19:22 -0400)
commit8bcaaabb1a023af4852dbf0dba76249982c62e40
treef75b777a34a7ab46c8f125921c3be5690c790982
parentb4d15df9e2943eecc27e3281a002144b7e4f30c8
blkid: Keep cached filesystem information on EACCES and ENOENT errors

When a nonprivileged user uses the blkid command, we want to keep the
cached filesystem information, and opening a device file could result
in an EACCESS or ENOENT (if an intervening directory is mode 700).  We
were previously testing for EPERM, which was really the wrong error
code to be testing against.

Addresses-Launchpad-Bug: #220275

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c