- if (find(conf_prunefs.begin(), conf_prunefs.end(), type) != conf_prunefs.end()) {
- /* Paths in /proc/self/mounts contain no symbolic links. Besides
- avoiding a few system calls, avoiding the realpath () avoids hangs
- if the filesystem is unavailable hard-mounted NFS. */
- char *dir = me->mnt_dir;
- if (conf_debug_pruning) {
- /* This is debugging output, don't mark anything for translation */
- fprintf(stderr, " => type matches, dir `%s'\n", dir);
- }
- bool res = (strcmp(path, dir) == 0);
- if (dir != me->mnt_dir)
- free(dir);
- if (res) {
- endmntent(f);
- return true;
- }
+ bool exclude = (find(conf_prunefs.begin(), conf_prunefs.end(), type) != conf_prunefs.end());
+ if (exclude && conf_debug_pruning) {
+ fprintf(stderr, " => excluded due to filesystem type\n");