pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user