{"action":"created","comment":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/95386643","pull_request_review_id":15939307,"id":95386643,"diff_hunk":"@@ -72,10 +97,25 @@ int posix_binary_file_store(const char *file_name, const char *buffer, size_t bu\n \n int posix_binary_file_delete(const char *file_name)\n {\n-    FILE *file = fopen(file_name, \"r\");\n+    if (file_name == NULL) {\n+        return -1;\n+    }\n+    const char* working_directory = kaa_get_working_directory();\n+    size_t kaa_path_size = strlen(working_directory) + strlen(file_name) + 2;","path":"client/client-multi/client-c/src/kaa/platform-impl/posix/file_utils.c","position":72,"original_position":72,"commit_id":"918ff2066c2cd1096db51e9bd162bea0722ec1cd","original_commit_id":"918ff2066c2cd1096db51e9bd162bea0722ec1cd","user":{"login":"GamovCoder","id":9300235,"avatar_url":"https://avatars.githubusercontent.com/u/9300235?v=3","gravatar_id":"","url":"https://api.github.com/users/GamovCoder","html_url":"https://github.com/GamovCoder","followers_url":"https://api.github.com/users/GamovCoder/followers","following_url":"https://api.github.com/users/GamovCoder/following{/other_user}","gists_url":"https://api.github.com/users/GamovCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/GamovCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GamovCoder/subscriptions","organizations_url":"https://api.github.com/users/GamovCoder/orgs","repos_url":"https://api.github.com/users/GamovCoder/repos","events_url":"https://api.github.com/users/GamovCoder/events{/privacy}","received_events_url":"https://api.github.com/users/GamovCoder/received_events","type":"User","site_admin":false},"body":"leave the comment which describes what `2` means.","created_at":"2017-01-10T15:28:27Z","updated_at":"2017-01-10T15:28:27Z","html_url":"https://github.com/kaaproject/kaa/pull/1398#discussion_r95386643","pull_request_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1398","_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments/95386643"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1398#discussion_r95386643"},"pull_request":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1398"}}},"pull_request":{"url":"https://api.github.com/repos/kaaproject/kaa/pulls/1398","id":99277613,"html_url":"https://github.com/kaaproject/kaa/pull/1398","diff_url":"https://github.com/kaaproject/kaa/pull/1398.diff","patch_url":"https://github.com/kaaproject/kaa/pull/1398.patch","issue_url":"https://api.github.com/repos/kaaproject/kaa/issues/1398","number":1398,"state":"open","locked":false,"title":"KAA-844: added feature to set working directory","user":{"login":"yverzun","id":22870688,"avatar_url":"https://avatars.githubusercontent.com/u/22870688?v=3","gravatar_id":"","url":"https://api.github.com/users/yverzun","html_url":"https://github.com/yverzun","followers_url":"https://api.github.com/users/yverzun/followers","following_url":"https://api.github.com/users/yverzun/following{/other_user}","gists_url":"https://api.github.com/users/yverzun/gists{/gist_id}","starred_url":"https://api.github.com/users/yverzun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yverzun/subscriptions","organizations_url":"https://api.github.com/users/yverzun/orgs","repos_url":"https://api.github.com/users/yverzun/repos","events_url":"https://api.github.com/users/yverzun/events{/privacy}","received_events_url":"https://api.github.com/users/yverzun/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-23T20:05:39Z","updated_at":"2017-01-10T15:28:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c62834bf907abdebb5f089a95e5f47c4e389399f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1398/commits","review_comments_url":"https://api.github.com/repos/kaaproject/kaa/pulls/1398/comments","review_comment_url":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaaproject/kaa/issues/1398/comments","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/918ff2066c2cd1096db51e9bd162bea0722ec1cd","head":{"label":"yverzun:KAA-1599","ref":"KAA-1599","sha":"918ff2066c2cd1096db51e9bd162bea0722ec1cd","user":{"login":"yverzun","id":22870688,"avatar_url":"https://avatars.githubusercontent.com/u/22870688?v=3","gravatar_id":"","url":"https://api.github.com/users/yverzun","html_url":"https://github.com/yverzun","followers_url":"https://api.github.com/users/yverzun/followers","following_url":"https://api.github.com/users/yverzun/following{/other_user}","gists_url":"https://api.github.com/users/yverzun/gists{/gist_id}","starred_url":"https://api.github.com/users/yverzun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yverzun/subscriptions","organizations_url":"https://api.github.com/users/yverzun/orgs","repos_url":"https://api.github.com/users/yverzun/repos","events_url":"https://api.github.com/users/yverzun/events{/privacy}","received_events_url":"https://api.github.com/users/yverzun/received_events","type":"User","site_admin":false},"repo":{"id":73927527,"name":"kaa","full_name":"yverzun/kaa","owner":{"login":"yverzun","id":22870688,"avatar_url":"https://avatars.githubusercontent.com/u/22870688?v=3","gravatar_id":"","url":"https://api.github.com/users/yverzun","html_url":"https://github.com/yverzun","followers_url":"https://api.github.com/users/yverzun/followers","following_url":"https://api.github.com/users/yverzun/following{/other_user}","gists_url":"https://api.github.com/users/yverzun/gists{/gist_id}","starred_url":"https://api.github.com/users/yverzun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yverzun/subscriptions","organizations_url":"https://api.github.com/users/yverzun/orgs","repos_url":"https://api.github.com/users/yverzun/repos","events_url":"https://api.github.com/users/yverzun/events{/privacy}","received_events_url":"https://api.github.com/users/yverzun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yverzun/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":true,"url":"https://api.github.com/repos/yverzun/kaa","forks_url":"https://api.github.com/repos/yverzun/kaa/forks","keys_url":"https://api.github.com/repos/yverzun/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yverzun/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yverzun/kaa/teams","hooks_url":"https://api.github.com/repos/yverzun/kaa/hooks","issue_events_url":"https://api.github.com/repos/yverzun/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/yverzun/kaa/events","assignees_url":"https://api.github.com/repos/yverzun/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/yverzun/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/yverzun/kaa/tags","blobs_url":"https://api.github.com/repos/yverzun/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yverzun/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yverzun/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/yverzun/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yverzun/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/yverzun/kaa/languages","stargazers_url":"https://api.github.com/repos/yverzun/kaa/stargazers","contributors_url":"https://api.github.com/repos/yverzun/kaa/contributors","subscribers_url":"https://api.github.com/repos/yverzun/kaa/subscribers","subscription_url":"https://api.github.com/repos/yverzun/kaa/subscription","commits_url":"https://api.github.com/repos/yverzun/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/yverzun/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/yverzun/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/yverzun/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/yverzun/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/yverzun/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yverzun/kaa/merges","archive_url":"https://api.github.com/repos/yverzun/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yverzun/kaa/downloads","issues_url":"https://api.github.com/repos/yverzun/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/yverzun/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/yverzun/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/yverzun/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yverzun/kaa/labels{/name}","releases_url":"https://api.github.com/repos/yverzun/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/yverzun/kaa/deployments","created_at":"2016-11-16T14:22:11Z","updated_at":"2016-12-08T16:53:30Z","pushed_at":"2017-01-06T12:09:24Z","git_url":"git://github.com/yverzun/kaa.git","ssh_url":"git@github.com:yverzun/kaa.git","clone_url":"https://github.com/yverzun/kaa.git","svn_url":"https://github.com/yverzun/kaa","homepage":"http://www.kaaproject.org","size":179681,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kaaproject:master","ref":"master","sha":"70c1ef04dc5b5ccf95511c60217c192ecebdba93","user":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":17839346,"name":"kaa","full_name":"kaaproject/kaa","owner":{"login":"kaaproject","id":6984613,"avatar_url":"https://avatars.githubusercontent.com/u/6984613?v=3","gravatar_id":"","url":"https://api.github.com/users/kaaproject","html_url":"https://github.com/kaaproject","followers_url":"https://api.github.com/users/kaaproject/followers","following_url":"https://api.github.com/users/kaaproject/following{/other_user}","gists_url":"https://api.github.com/users/kaaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/kaaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaaproject/subscriptions","organizations_url":"https://api.github.com/users/kaaproject/orgs","repos_url":"https://api.github.com/users/kaaproject/repos","events_url":"https://api.github.com/users/kaaproject/events{/privacy}","received_events_url":"https://api.github.com/users/kaaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaaproject/kaa","description":"Kaa open-source middleware platform for building, managing, and integrating connected products with the Internet of Everything.","fork":false,"url":"https://api.github.com/repos/kaaproject/kaa","forks_url":"https://api.github.com/repos/kaaproject/kaa/forks","keys_url":"https://api.github.com/repos/kaaproject/kaa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaaproject/kaa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaaproject/kaa/teams","hooks_url":"https://api.github.com/repos/kaaproject/kaa/hooks","issue_events_url":"https://api.github.com/repos/kaaproject/kaa/issues/events{/number}","events_url":"https://api.github.com/repos/kaaproject/kaa/events","assignees_url":"https://api.github.com/repos/kaaproject/kaa/assignees{/user}","branches_url":"https://api.github.com/repos/kaaproject/kaa/branches{/branch}","tags_url":"https://api.github.com/repos/kaaproject/kaa/tags","blobs_url":"https://api.github.com/repos/kaaproject/kaa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaaproject/kaa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaaproject/kaa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaaproject/kaa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaaproject/kaa/statuses/{sha}","languages_url":"https://api.github.com/repos/kaaproject/kaa/languages","stargazers_url":"https://api.github.com/repos/kaaproject/kaa/stargazers","contributors_url":"https://api.github.com/repos/kaaproject/kaa/contributors","subscribers_url":"https://api.github.com/repos/kaaproject/kaa/subscribers","subscription_url":"https://api.github.com/repos/kaaproject/kaa/subscription","commits_url":"https://api.github.com/repos/kaaproject/kaa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaaproject/kaa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaaproject/kaa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaaproject/kaa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaaproject/kaa/contents/{+path}","compare_url":"https://api.github.com/repos/kaaproject/kaa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaaproject/kaa/merges","archive_url":"https://api.github.com/repos/kaaproject/kaa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaaproject/kaa/downloads","issues_url":"https://api.github.com/repos/kaaproject/kaa/issues{/number}","pulls_url":"https://api.github.com/repos/kaaproject/kaa/pulls{/number}","milestones_url":"https://api.github.com/repos/kaaproject/kaa/milestones{/number}","notifications_url":"https://api.github.com/repos/kaaproject/kaa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaaproject/kaa/labels{/name}","releases_url":"https://api.github.com/repos/kaaproject/kaa/releases{/id}","deployments_url":"https://api.github.com/repos/kaaproject/kaa/deployments","created_at":"2014-03-17T18:48:31Z","updated_at":"2017-01-10T08:07:57Z","pushed_at":"2017-01-06T16:04:52Z","git_url":"git://github.com/kaaproject/kaa.git","ssh_url":"git@github.com:kaaproject/kaa.git","clone_url":"https://github.com/kaaproject/kaa.git","svn_url":"https://github.com/kaaproject/kaa","homepage":"http://www.kaaproject.org","size":180140,"stargazers_count":553,"watchers_count":553,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":211,"mirror_url":null,"open_issues_count":8,"forks":211,"open_issues":8,"watchers":553,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1398"},"html":{"href":"https://github.com/kaaproject/kaa/pull/1398"},"issue":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1398"},"comments":{"href":"https://api.github.com/repos/kaaproject/kaa/issues/1398/comments"},"review_comments":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1398/comments"},"review_comment":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaaproject/kaa/pulls/1398/commits"},"statuses":{"href":"https://api.github.com/repos/kaaproject/kaa/statuses/918ff2066c2cd1096db51e9bd162bea0722ec1cd"}}}}
{"actor":{"display_login":"GamovCoder"}}