commit ae3423e366405085e0146d5d3f1a717c402fd929
parent f8dc6883a313911170c759bf0d1240c8a0ac2fb5
Author: Federico G. Benavento <benavento@gmail.com>
Date: Sun, 10 Mar 2013 17:48:17 -0300
pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 {