From 5f9aae196006edce2703c5019dba0af44b8a9339 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 18 Oct 2011 23:47:51 +0200 Subject: 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. --- libdiskfs/io-pathconf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libdiskfs') 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; -- cgit v1.2.3