This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  44d863a   rectify a minor error in healthchecks.c
44d863a is described below

commit 44d863a8d43d042b3c5dea122a3ecf6bdfdcce3d
Author: 雪峰流云 <tao_...@aliyun.com>
AuthorDate: Wed Mar 8 13:45:26 2017 +0800

    rectify a minor error in healthchecks.c
    
    line 316:
    snprintf(filename, sizeof(filename), "%s/%s", fname, TSConfigDirGet());
    should be modified as
    snprintf(filename, sizeof(filename), "%s/%s", TSConfigDirGet(), fname);
---
 plugins/healthchecks/healthchecks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/healthchecks/healthchecks.c 
b/plugins/healthchecks/healthchecks.c
index b9e3c27..c58c344 100644
--- a/plugins/healthchecks/healthchecks.c
+++ b/plugins/healthchecks/healthchecks.c
@@ -313,7 +313,7 @@ parse_configs(const char *fname)
   } else {
     char filename[PATH_MAX + 1];
 
-    snprintf(filename, sizeof(filename), "%s/%s", fname, TSConfigDirGet());
+    snprintf(filename, sizeof(filename), "%s/%s", TSConfigDirGet(), fname);
     fd = fopen(filename, "r");
   }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to