diff options
author | Arno Töll <arno@debian.org> | 2012-11-21 23:04:01 +0100 |
---|---|---|
committer | Arno Töll <arno@debian.org> | 2012-11-21 23:04:01 +0100 |
commit | 7074704eb0b50f755f30ef21bbeb8fa064e2df5d (patch) | |
tree | b84509f1b2ac0b565b03914c4fd4f907d9d4cefc /src/mod_dirlisting.c | |
parent | c0f89a02702b44a811cac511838cbd217ee5dd82 (diff) | |
download | lighttpd-7074704eb0b50f755f30ef21bbeb8fa064e2df5d.tar.gz |
Imported Upstream version 1.4.30upstream/1.4.30
Diffstat (limited to 'src/mod_dirlisting.c')
-rw-r--r-- | src/mod_dirlisting.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c index bef8923..cd317ec 100644 --- a/src/mod_dirlisting.c +++ b/src/mod_dirlisting.c @@ -657,7 +657,8 @@ static int http_list_directory(server *srv, connection *con, plugin_data *p, buf i = dir->used - 1; #ifdef HAVE_PATHCONF - if (-1 == (name_max = pathconf(dir->ptr, _PC_NAME_MAX))) { + if (0 >= (name_max = pathconf(dir->ptr, _PC_NAME_MAX))) { + /* some broken fs (fuse) return 0 instead of -1 */ #ifdef NAME_MAX name_max = NAME_MAX; #else |