diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-06-06 23:09:27 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-06-06 23:09:27 +0000 |
commit | 1d224692aad2fc4de6bf769fb83631e2659dcbc1 (patch) | |
tree | 8997fc4bcd4cad86901a9ab518c9143cab7fcb9a /www/lighttpd/files | |
parent | - Update to 4.0.5 (diff) |
- Workaround for a problem when access one symbolic link and end with /.
- Bump PORTREVISION.
Take from: http://redmine.lighttpd.net/issues/1989
Diffstat (limited to 'www/lighttpd/files')
-rw-r--r-- | www/lighttpd/files/patch-src__stat_cache.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/lighttpd/files/patch-src__stat_cache.c b/www/lighttpd/files/patch-src__stat_cache.c new file mode 100644 index 000000000000..210992e178eb --- /dev/null +++ b/www/lighttpd/files/patch-src__stat_cache.c @@ -0,0 +1,21 @@ +# +# Do not remove until http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/21768 +# is not applied and release new versions. +# +Index: stat_cache.c +=================================================================== +--- src/stat_cache.c (revision 1006) ++++ src/stat_cache.c (revision 1008) +@@ -487,6 +487,12 @@ + + + if (S_ISREG(st.st_mode)) { ++ /* fix broken stat/open for symlinks to reg files with appended slash on freebsd,osx */ ++ if (name->ptr[name->used-2] == '/') { ++ errno = ENOTDIR; ++ return HANDLER_ERROR; ++ } ++ + /* try to open the file to check if we can read it */ + if (-1 == (fd = open(name->ptr, O_RDONLY))) { + return HANDLER_ERROR; |