diff options
author | leetking | 2019-05-02 21:37:28 +0800 |
---|---|---|
committer | leetking | 2019-05-02 22:08:08 +0800 |
commit | a3b131108a8549c9479f808b7cb88ab817b7693c (patch) | |
tree | f83006ebad84fd8809e5dd64701cb06085d21d85 /fix-log-path.patch | |
download | aur-a3b131108a8549c9479f808b7cb88ab817b7693c.tar.gz |
Initial commit
Diffstat (limited to 'fix-log-path.patch')
-rw-r--r-- | fix-log-path.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fix-log-path.patch b/fix-log-path.patch new file mode 100644 index 000000000000..a38842698672 --- /dev/null +++ b/fix-log-path.patch @@ -0,0 +1,17 @@ +diff --git a/src/core/tc_log.c b/src/core/tc_log.c +index 472587d..dad2537 100644 +--- a/src/core/tc_log.c ++++ b/src/core/tc_log.c +@@ -69,6 +69,12 @@ tc_log_init(const char *file) + return -1; + } + strncpy(default_file_path, TC_PREFIX, len); ++ ++ /* absolute path */ ++ if ('/' == TC_ERROR_LOG_PATH[0]) { ++ len = 0; ++ } ++ + p = default_file_path + len; + len += strlen(TC_ERROR_LOG_PATH); + if (len >= 256) { |