summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2011-10-18 23:47:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-10-19 00:14:45 +0200
commit5f9aae196006edce2703c5019dba0af44b8a9339 (patch)
treeeb60dbb5550bfde2046807d2ec67314aa3630128 /libdiskfs
parent98316b2065135f6f115d31ca5633eca0b9b78740 (diff)
libdiskfs: 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. * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_PATH_MAX too.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-pathconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/io-pathconf.c b/libdiskfs/io-pathconf.c
index b851f9b1..38e277c3 100644
--- a/libdiskfs/io-pathconf.c
+++ b/libdiskfs/io-pathconf.c
@@ -41,6 +41,7 @@ diskfs_S_io_pathconf (struct protid *cred,
case _PC_PIPE_BUF:
case _PC_VDISABLE:
case _PC_SOCK_MAXBUF:
+ case _PC_PATH_MAX:
*value = -1;
break;