aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bindfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index ce22825..1726adf 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -405,9 +405,7 @@ static int bindfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
pc_ret = pathconf(path, _PC_NAME_MAX);
if (pc_ret < 0) {
DPRINTF("pathconf failed: %s (%d)", strerror(errno), errno);
- /* Could use NAME_MAX but it may not be safe if the underlying
- * FS is NFS or similar. */
- return -errno;
+ pc_ret = NAME_MAX;
}
de_buf = malloc(offsetof(struct dirent, d_name) + pc_ret + 1);