diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-27 16:03:21 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-27 16:03:21 +0000 |
commit | 6d2a14aa906b1d576d5151b2410b59cfcab5edd4 (patch) | |
tree | 7d8d6d36783a29c4a9ec78e81bb9814155bb355f /src/core/ngx_log.c | |
parent | 4bed6e3120eeccc7f3ea97101decd382552a0ffc (diff) | |
download | nginx-6d2a14aa906b1d576d5151b2410b59cfcab5edd4.tar.gz nginx-6d2a14aa906b1d576d5151b2410b59cfcab5edd4.zip |
nginx-0.1.0-2004-09-27-20:03:21 import
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 05ee4dd1d..e542920d4 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -375,6 +375,12 @@ static char *ngx_set_error_log(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } else { cf->cycle->new_log->file->name = value[1]; + + if (ngx_conf_full_name(cf->cycle, &cf->cycle->new_log->file->name) + == NGX_ERROR) + { + return NGX_CONF_ERROR; + } } return ngx_set_error_log_levels(cf, cf->cycle->new_log); |