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)