{"action":"created","comment":{"url":"https://api.github.com/repos/OpsClarity/collectd/pulls/comments/77027834","id":77027834,"diff_hunk":"@@ -160,6 +162,25 @@ static int init_global_variables (void)\n \t\treturn (-1);\n \tDEBUG (\"hostname_g = %s;\", hostname_g);\n \n+\tprocBaseDir_g[0] = '\\0';\n+\n+\tprocBaseDirPath = global_option_get(\"procBaseDir\");\n+\tif (procBaseDirPath != NULL) {\n+\n+\t\t// Should Always begin with /\n+\t\tif ( procBaseDirPath[0] != '/') {\n+\t\t\tfprintf(stderr, \"Invalid Proc base dir path <%s>\", procBaseDirPath);\n+\t\t\treturn (-1);\n+\t\t}\n+\n+\t\tsnprintf(procBaseDir_g, sizeof(procBaseDir_g), \"%s\", procBaseDirPath);\n+\n+\t\t// Remove / as the end\n+\t\tif (procBaseDir_g[strlen(procBaseDir_g)] == '/')","path":"src/collectd.c","position":null,"original_position":36,"commit_id":"ab6d6e95b04795d03cd7cd9b4846ec1704cfe4c2","original_commit_id":"6f1a5565915fada1c895b034c017a26a79a13ab7","user":{"login":"srikanthops","id":6611554,"avatar_url":"https://avatars.githubusercontent.com/u/6611554?v=3","gravatar_id":"","url":"https://api.github.com/users/srikanthops","html_url":"https://github.com/srikanthops","followers_url":"https://api.github.com/users/srikanthops/followers","following_url":"https://api.github.com/users/srikanthops/following{/other_user}","gists_url":"https://api.github.com/users/srikanthops/gists{/gist_id}","starred_url":"https://api.github.com/users/srikanthops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srikanthops/subscriptions","organizations_url":"https://api.github.com/users/srikanthops/orgs","repos_url":"https://api.github.com/users/srikanthops/repos","events_url":"https://api.github.com/users/srikanthops/events{/privacy}","received_events_url":"https://api.github.com/users/srikanthops/received_events","type":"User","site_admin":false},"body":"This is fixed..  use strlen(str) -1 ","created_at":"2016-08-31T17:00:54Z","updated_at":"2016-08-31T17:00:54Z","html_url":"https://github.com/OpsClarity/collectd/pull/9#discussion_r77027834","pull_request_url":"https://api.github.com/repos/OpsClarity/collectd/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/comments/77027834"},"html":{"href":"https://github.com/OpsClarity/collectd/pull/9#discussion_r77027834"},"pull_request":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/OpsClarity/collectd/pulls/9","id":83309196,"html_url":"https://github.com/OpsClarity/collectd/pull/9","diff_url":"https://github.com/OpsClarity/collectd/pull/9.diff","patch_url":"https://github.com/OpsClarity/collectd/pull/9.patch","issue_url":"https://api.github.com/repos/OpsClarity/collectd/issues/9","number":9,"state":"open","locked":false,"title":"Add support for configuring prefix for proc file system","user":{"login":"srikanthops","id":6611554,"avatar_url":"https://avatars.githubusercontent.com/u/6611554?v=3","gravatar_id":"","url":"https://api.github.com/users/srikanthops","html_url":"https://github.com/srikanthops","followers_url":"https://api.github.com/users/srikanthops/followers","following_url":"https://api.github.com/users/srikanthops/following{/other_user}","gists_url":"https://api.github.com/users/srikanthops/gists{/gist_id}","starred_url":"https://api.github.com/users/srikanthops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srikanthops/subscriptions","organizations_url":"https://api.github.com/users/srikanthops/orgs","repos_url":"https://api.github.com/users/srikanthops/repos","events_url":"https://api.github.com/users/srikanthops/events{/privacy}","received_events_url":"https://api.github.com/users/srikanthops/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-30T17:02:28Z","updated_at":"2016-08-31T17:00:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22794d62b69258b7c34380a8f7ec04bf2c070d4c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpsClarity/collectd/pulls/9/commits","review_comments_url":"https://api.github.com/repos/OpsClarity/collectd/pulls/9/comments","review_comment_url":"https://api.github.com/repos/OpsClarity/collectd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpsClarity/collectd/issues/9/comments","statuses_url":"https://api.github.com/repos/OpsClarity/collectd/statuses/ab6d6e95b04795d03cd7cd9b4846ec1704cfe4c2","head":{"label":"OpsClarity:feature/ConfigurableProcPath/srikanth","ref":"feature/ConfigurableProcPath/srikanth","sha":"ab6d6e95b04795d03cd7cd9b4846ec1704cfe4c2","user":{"login":"OpsClarity","id":6090311,"avatar_url":"https://avatars.githubusercontent.com/u/6090311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpsClarity","html_url":"https://github.com/OpsClarity","followers_url":"https://api.github.com/users/OpsClarity/followers","following_url":"https://api.github.com/users/OpsClarity/following{/other_user}","gists_url":"https://api.github.com/users/OpsClarity/gists{/gist_id}","starred_url":"https://api.github.com/users/OpsClarity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpsClarity/subscriptions","organizations_url":"https://api.github.com/users/OpsClarity/orgs","repos_url":"https://api.github.com/users/OpsClarity/repos","events_url":"https://api.github.com/users/OpsClarity/events{/privacy}","received_events_url":"https://api.github.com/users/OpsClarity/received_events","type":"Organization","site_admin":false},"repo":{"id":32818497,"name":"collectd","full_name":"OpsClarity/collectd","owner":{"login":"OpsClarity","id":6090311,"avatar_url":"https://avatars.githubusercontent.com/u/6090311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpsClarity","html_url":"https://github.com/OpsClarity","followers_url":"https://api.github.com/users/OpsClarity/followers","following_url":"https://api.github.com/users/OpsClarity/following{/other_user}","gists_url":"https://api.github.com/users/OpsClarity/gists{/gist_id}","starred_url":"https://api.github.com/users/OpsClarity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpsClarity/subscriptions","organizations_url":"https://api.github.com/users/OpsClarity/orgs","repos_url":"https://api.github.com/users/OpsClarity/repos","events_url":"https://api.github.com/users/OpsClarity/events{/privacy}","received_events_url":"https://api.github.com/users/OpsClarity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpsClarity/collectd","description":"The system statistics collection daemon. Mirror of the canonical repository (updated automatically). Please send Pull Requests here!","fork":true,"url":"https://api.github.com/repos/OpsClarity/collectd","forks_url":"https://api.github.com/repos/OpsClarity/collectd/forks","keys_url":"https://api.github.com/repos/OpsClarity/collectd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpsClarity/collectd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpsClarity/collectd/teams","hooks_url":"https://api.github.com/repos/OpsClarity/collectd/hooks","issue_events_url":"https://api.github.com/repos/OpsClarity/collectd/issues/events{/number}","events_url":"https://api.github.com/repos/OpsClarity/collectd/events","assignees_url":"https://api.github.com/repos/OpsClarity/collectd/assignees{/user}","branches_url":"https://api.github.com/repos/OpsClarity/collectd/branches{/branch}","tags_url":"https://api.github.com/repos/OpsClarity/collectd/tags","blobs_url":"https://api.github.com/repos/OpsClarity/collectd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpsClarity/collectd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpsClarity/collectd/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpsClarity/collectd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpsClarity/collectd/statuses/{sha}","languages_url":"https://api.github.com/repos/OpsClarity/collectd/languages","stargazers_url":"https://api.github.com/repos/OpsClarity/collectd/stargazers","contributors_url":"https://api.github.com/repos/OpsClarity/collectd/contributors","subscribers_url":"https://api.github.com/repos/OpsClarity/collectd/subscribers","subscription_url":"https://api.github.com/repos/OpsClarity/collectd/subscription","commits_url":"https://api.github.com/repos/OpsClarity/collectd/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpsClarity/collectd/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpsClarity/collectd/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpsClarity/collectd/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpsClarity/collectd/contents/{+path}","compare_url":"https://api.github.com/repos/OpsClarity/collectd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpsClarity/collectd/merges","archive_url":"https://api.github.com/repos/OpsClarity/collectd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpsClarity/collectd/downloads","issues_url":"https://api.github.com/repos/OpsClarity/collectd/issues{/number}","pulls_url":"https://api.github.com/repos/OpsClarity/collectd/pulls{/number}","milestones_url":"https://api.github.com/repos/OpsClarity/collectd/milestones{/number}","notifications_url":"https://api.github.com/repos/OpsClarity/collectd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpsClarity/collectd/labels{/name}","releases_url":"https://api.github.com/repos/OpsClarity/collectd/releases{/id}","deployments_url":"https://api.github.com/repos/OpsClarity/collectd/deployments","created_at":"2015-03-24T18:53:40Z","updated_at":"2016-08-29T23:46:44Z","pushed_at":"2016-08-30T22:51:22Z","git_url":"git://github.com/OpsClarity/collectd.git","ssh_url":"git@github.com:OpsClarity/collectd.git","clone_url":"https://github.com/OpsClarity/collectd.git","svn_url":"https://github.com/OpsClarity/collectd","homepage":"http://collectd.org/","size":10924,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"OpsClarity:opsclarity-release-5.4","ref":"opsclarity-release-5.4","sha":"06fbaf5e22d29b58ec9879366995f54e401c3e8a","user":{"login":"OpsClarity","id":6090311,"avatar_url":"https://avatars.githubusercontent.com/u/6090311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpsClarity","html_url":"https://github.com/OpsClarity","followers_url":"https://api.github.com/users/OpsClarity/followers","following_url":"https://api.github.com/users/OpsClarity/following{/other_user}","gists_url":"https://api.github.com/users/OpsClarity/gists{/gist_id}","starred_url":"https://api.github.com/users/OpsClarity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpsClarity/subscriptions","organizations_url":"https://api.github.com/users/OpsClarity/orgs","repos_url":"https://api.github.com/users/OpsClarity/repos","events_url":"https://api.github.com/users/OpsClarity/events{/privacy}","received_events_url":"https://api.github.com/users/OpsClarity/received_events","type":"Organization","site_admin":false},"repo":{"id":32818497,"name":"collectd","full_name":"OpsClarity/collectd","owner":{"login":"OpsClarity","id":6090311,"avatar_url":"https://avatars.githubusercontent.com/u/6090311?v=3","gravatar_id":"","url":"https://api.github.com/users/OpsClarity","html_url":"https://github.com/OpsClarity","followers_url":"https://api.github.com/users/OpsClarity/followers","following_url":"https://api.github.com/users/OpsClarity/following{/other_user}","gists_url":"https://api.github.com/users/OpsClarity/gists{/gist_id}","starred_url":"https://api.github.com/users/OpsClarity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpsClarity/subscriptions","organizations_url":"https://api.github.com/users/OpsClarity/orgs","repos_url":"https://api.github.com/users/OpsClarity/repos","events_url":"https://api.github.com/users/OpsClarity/events{/privacy}","received_events_url":"https://api.github.com/users/OpsClarity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpsClarity/collectd","description":"The system statistics collection daemon. Mirror of the canonical repository (updated automatically). Please send Pull Requests here!","fork":true,"url":"https://api.github.com/repos/OpsClarity/collectd","forks_url":"https://api.github.com/repos/OpsClarity/collectd/forks","keys_url":"https://api.github.com/repos/OpsClarity/collectd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpsClarity/collectd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpsClarity/collectd/teams","hooks_url":"https://api.github.com/repos/OpsClarity/collectd/hooks","issue_events_url":"https://api.github.com/repos/OpsClarity/collectd/issues/events{/number}","events_url":"https://api.github.com/repos/OpsClarity/collectd/events","assignees_url":"https://api.github.com/repos/OpsClarity/collectd/assignees{/user}","branches_url":"https://api.github.com/repos/OpsClarity/collectd/branches{/branch}","tags_url":"https://api.github.com/repos/OpsClarity/collectd/tags","blobs_url":"https://api.github.com/repos/OpsClarity/collectd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpsClarity/collectd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpsClarity/collectd/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpsClarity/collectd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpsClarity/collectd/statuses/{sha}","languages_url":"https://api.github.com/repos/OpsClarity/collectd/languages","stargazers_url":"https://api.github.com/repos/OpsClarity/collectd/stargazers","contributors_url":"https://api.github.com/repos/OpsClarity/collectd/contributors","subscribers_url":"https://api.github.com/repos/OpsClarity/collectd/subscribers","subscription_url":"https://api.github.com/repos/OpsClarity/collectd/subscription","commits_url":"https://api.github.com/repos/OpsClarity/collectd/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpsClarity/collectd/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpsClarity/collectd/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpsClarity/collectd/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpsClarity/collectd/contents/{+path}","compare_url":"https://api.github.com/repos/OpsClarity/collectd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpsClarity/collectd/merges","archive_url":"https://api.github.com/repos/OpsClarity/collectd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpsClarity/collectd/downloads","issues_url":"https://api.github.com/repos/OpsClarity/collectd/issues{/number}","pulls_url":"https://api.github.com/repos/OpsClarity/collectd/pulls{/number}","milestones_url":"https://api.github.com/repos/OpsClarity/collectd/milestones{/number}","notifications_url":"https://api.github.com/repos/OpsClarity/collectd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpsClarity/collectd/labels{/name}","releases_url":"https://api.github.com/repos/OpsClarity/collectd/releases{/id}","deployments_url":"https://api.github.com/repos/OpsClarity/collectd/deployments","created_at":"2015-03-24T18:53:40Z","updated_at":"2016-08-29T23:46:44Z","pushed_at":"2016-08-30T22:51:22Z","git_url":"git://github.com/OpsClarity/collectd.git","ssh_url":"git@github.com:OpsClarity/collectd.git","clone_url":"https://github.com/OpsClarity/collectd.git","svn_url":"https://github.com/OpsClarity/collectd","homepage":"http://collectd.org/","size":10924,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/9"},"html":{"href":"https://github.com/OpsClarity/collectd/pull/9"},"issue":{"href":"https://api.github.com/repos/OpsClarity/collectd/issues/9"},"comments":{"href":"https://api.github.com/repos/OpsClarity/collectd/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpsClarity/collectd/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/OpsClarity/collectd/statuses/ab6d6e95b04795d03cd7cd9b4846ec1704cfe4c2"}}}}
{"actor":{"display_login":"srikanthops"}}