openbsd-ports/www/lighttpd/patches/patch-src_mod_compress_c
2008-03-16 18:43:31 +00:00

15 lines
574 B
Plaintext

$OpenBSD: patch-src_mod_compress_c,v 1.1 2008/03/16 18:43:31 brad Exp $
--- src/mod_compress.c.orig Sun Mar 16 09:14:55 2008
+++ src/mod_compress.c Sun Mar 16 09:15:28 2008
@@ -178,9 +178,9 @@ SETDEFAULTS_FUNC(mod_compress_setdefaults) {
}
if (!buffer_is_empty(s->compress_cache_dir)) {
+ struct stat st;
mkdir_recursive(s->compress_cache_dir->ptr);
- struct stat st;
if (0 != stat(s->compress_cache_dir->ptr, &st)) {
log_error_write(srv, __FILE__, __LINE__, "sbs", "can't stat compress.cache-dir",
s->compress_cache_dir, strerror(errno));