summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-02-15 15:21:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-02-15 15:21:22 +0200
commit82f39bc8888a765dd4efb1b3539cc2bbac684ed9 (patch)
tree39660eb559cdfbc7189dd3aee1f6a343ffa12e57
parente93d76665d1ca0f7388ce22f1da1c38ce0900dac (diff)
downloadrpm-82f39bc8888a765dd4efb1b3539cc2bbac684ed9.tar.gz
rpm-82f39bc8888a765dd4efb1b3539cc2bbac684ed9.tar.bz2
rpm-82f39bc8888a765dd4efb1b3539cc2bbac684ed9.zip
Shut up another case of FUSE mount stat whining (rhbz#432907)
-rw-r--r--lib/fs.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/fs.c b/lib/fs.c
index 9efa65171..0635b759c 100644
--- a/lib/fs.c
+++ b/lib/fs.c
@@ -197,11 +197,16 @@ static int getFilesystemList(void)
# endif
if (stat(mntdir, &sb)) {
- rpmlog(RPMLOG_ERR, _("failed to stat %s: %s\n"), mntdir,
+ switch (errno) {
+ case ESTALE:
+ case EACCES:
+ continue;
+ default:
+ rpmlog(RPMLOG_ERR, _("failed to stat %s: %s\n"), mntdir,
strerror(errno));
-
- rpmFreeFilesystems();
- return 1;
+ rpmFreeFilesystems();
+ return 1;
+ }
}
if ((numFilesystems + 2) == numAlloced) {