Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4784 - trunk/src/core

Anonymous User
August 03, 2012 08:54AM
Author: ru
Date: 2012-08-03 12:52:32 +0000 (Fri, 03 Aug 2012)
New Revision: 4784
URL: http://trac.nginx.org/nginx/changeset/4784/nginx

Log:
Fixed the -p parameter handling.

Ensure that the path supplied always ends with a `/' except when empty.
An empty value now corresponds to the current directory instead of `/'.


Modified:
trunk/src/core/nginx.c

Modified: trunk/src/core/nginx.c
===================================================================
--- trunk/src/core/nginx.c 2012-08-03 09:10:39 UTC (rev 4783)
+++ trunk/src/core/nginx.c 2012-08-03 12:52:32 UTC (rev 4784)
@@ -836,7 +836,7 @@
len = ngx_strlen(ngx_prefix);
p = ngx_prefix;

- if (!ngx_path_separator(*p)) {
+ if (len && !ngx_path_separator(p[len - 1])) {
p = ngx_pnalloc(cycle->pool, len + 1);
if (p == NULL) {
return NGX_ERROR;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4784 - trunk/src/core

Anonymous User 949 August 03, 2012 08:54AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 126
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready