From: Panu Matilainen Date: Thu, 9 Aug 2007 18:50:56 +0000 (+0300) Subject: Skip stale and unaccessible (FUSE) mountpoints (rhbz#190496, 220991) X-Git-Tag: rpm-4.6.0-rc1~2160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8afa0d14221a950ce85f3fcca226a9e6e570fdbb;p=platform%2Fupstream%2Frpm.git Skip stale and unaccessible (FUSE) mountpoints (rhbz#190496, 220991) Ported from rpm5.org work of Jeff Johnson. --- diff --git a/lib/fs.c b/lib/fs.c index c83051d..64fc4e0 100644 --- a/lib/fs.c +++ b/lib/fs.c @@ -109,11 +109,17 @@ static int getFilesystemList(void) filesystems[i].mntPoint = fsnames[i] = fsn; if (stat(filesystems[i].mntPoint, &sb)) { - rpmError(RPMERR_STAT, _("failed to stat %s: %s\n"), fsnames[i], + switch (errno) { + case EACCES: /* fuse mount */ + case ESTALE: + continue; + default: + rpmError(RPMERR_STAT, _("failed to stat %s: %s\n"), fsnames[i], strerror(errno)); - freeFilesystems(); - return 1; + freeFilesystems(); + return 1; + } } filesystems[i].dev = sb.st_dev;