From ae3423e366405085e0146d5d3f1a717c402fd929 Mon Sep 17 00:00:00 2001 From: "Federico G. Benavento" Date: Sun, 10 Mar 2013 17:48:17 -0300 Subject: [PATCH] pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead. --- util/apathmax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/apathmax.c b/util/apathmax.c index 4e1b71e..5dc831f 100644 --- a/util/apathmax.c +++ b/util/apathmax.c @@ -11,7 +11,7 @@ apathmax(char **p, long *size) { errno = 0; - if((*size = pathconf(".", _PC_PATH_MAX)) == -1) { + if((*size = pathconf("/", _PC_PATH_MAX)) == -1) { if(errno == 0) { *size = BUFSIZ; } else {