summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2011-10-19 22:25:34 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-10-19 23:33:50 +0200
commit4dc52dc880a22a70b8a7a1090fb3c12158ab2528 (patch)
tree09c613c732360a2c5e3f5c2889b99356251547ac
parent5f9aae196006edce2703c5019dba0af44b8a9339 (diff)
libnetfs: handle _PC_PATH_MAX in pathconf
Explicitly return -1 also for _PC_PATH_MAX to indicate there is no limit for it, otherwise EINVAL is returned for it. * libnetfs/io-pathconf.c (netfs_S_io_pathconf): Handle _PC_PATH_MAX too.
-rw-r--r--libnetfs/io-pathconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetfs/io-pathconf.c b/libnetfs/io-pathconf.c
index 78244bcd..2fd3f5bc 100644
--- a/libnetfs/io-pathconf.c
+++ b/libnetfs/io-pathconf.c
@@ -39,6 +39,7 @@ netfs_S_io_pathconf (struct protid *user,
case _PC_PIPE_BUF:
case _PC_VDISABLE:
case _PC_SOCK_MAXBUF:
+ case _PC_PATH_MAX:
*value = -1;
break;