From 7313de54cbac0cceaef1002fddb58b4a08977cf3 Mon Sep 17 00:00:00 2001 From: Robin Hahling Date: Thu, 3 Oct 2013 09:41:42 +0200 Subject: [PATCH] reintroduced "skip when unable to stat" feature for Linux --- src/dfc.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/dfc.c b/src/dfc.c index 6c57cc4..acc801e 100644 --- a/src/dfc.c +++ b/src/dfc.c @@ -504,23 +504,11 @@ fetch_info(struct list *lst) while ((entbuf = getmntent(mtab)) != NULL) { /* get infos from statvfs */ if (statvfs(entbuf->mnt_dir, &vfsbuf) == -1) { - /* - * show warning when permission denied or when it - * cannot be stated because of connexion problem for a - * remote file system - */ - if (errno == EACCES || errno == ENOTCONN) { - (void)fprintf(stderr, _("WARNING: %s was skipped " - "because it could not be stated"), - entbuf->mnt_dir); - perror(" "); - } else { - (void)fprintf(stderr, "Error while stating %s", - entbuf->mnt_dir); - perror(" "); - exit(EXIT_FAILURE); - /* NOTREACHED */ - } + /* display a warning when a FS cannot be stated */ + (void)fprintf(stderr, _("WARNING: %s was skipped " + "because it could not be stated"), + entbuf->mnt_dir); + perror(" "); } else { #else /* BSD */ if ((nummnt = getmntinfo(&entbuf, MNT_NOWAIT)) <= 0)