{"action":"closed","number":1513,"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/1513","id":31728360,"html_url":"https://github.com/syncthing/syncthing/pull/1513","diff_url":"https://github.com/syncthing/syncthing/pull/1513.diff","patch_url":"https://github.com/syncthing/syncthing/pull/1513.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/1513","number":1513,"state":"closed","locked":false,"title":"Preserve the permission of a newly created directory","user":{"login":"kamadak","id":4836155,"avatar_url":"https://avatars.githubusercontent.com/u/4836155?v=3","gravatar_id":"","url":"https://api.github.com/users/kamadak","html_url":"https://github.com/kamadak","followers_url":"https://api.github.com/users/kamadak/followers","following_url":"https://api.github.com/users/kamadak/following{/other_user}","gists_url":"https://api.github.com/users/kamadak/gists{/gist_id}","starred_url":"https://api.github.com/users/kamadak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamadak/subscriptions","organizations_url":"https://api.github.com/users/kamadak/orgs","repos_url":"https://api.github.com/users/kamadak/repos","events_url":"https://api.github.com/users/kamadak/events{/privacy}","received_events_url":"https://api.github.com/users/kamadak/received_events","type":"User","site_admin":false},"body":"We need an explicit chmod() when creating a new directory.\r\nOtherwise a new directory may be created with a different permission\r\nfrom the one received from an originating device, because the umask\r\nis applied to the mode given to mkdir().\r\nThe incorrect permission is later sent back to the originating device\r\nand the original permission will be lost.","created_at":"2015-03-23T12:44:24Z","updated_at":"2015-03-24T20:09:49Z","closed_at":"2015-03-24T20:09:48Z","merged_at":"2015-03-24T20:09:48Z","merge_commit_sha":"11cd5b975fb451d744576f28c6002f7abb7a078a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/1513/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/1513/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/1513/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/ac7097b4d047c6c413b71844dffa2b45879d02ec","head":{"label":"kamadak:dir-perm","ref":"dir-perm","sha":"ac7097b4d047c6c413b71844dffa2b45879d02ec","user":{"login":"kamadak","id":4836155,"avatar_url":"https://avatars.githubusercontent.com/u/4836155?v=3","gravatar_id":"","url":"https://api.github.com/users/kamadak","html_url":"https://github.com/kamadak","followers_url":"https://api.github.com/users/kamadak/followers","following_url":"https://api.github.com/users/kamadak/following{/other_user}","gists_url":"https://api.github.com/users/kamadak/gists{/gist_id}","starred_url":"https://api.github.com/users/kamadak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamadak/subscriptions","organizations_url":"https://api.github.com/users/kamadak/orgs","repos_url":"https://api.github.com/users/kamadak/repos","events_url":"https://api.github.com/users/kamadak/events{/privacy}","received_events_url":"https://api.github.com/users/kamadak/received_events","type":"User","site_admin":false},"repo":{"id":32261718,"name":"syncthing","full_name":"kamadak/syncthing","owner":{"login":"kamadak","id":4836155,"avatar_url":"https://avatars.githubusercontent.com/u/4836155?v=3","gravatar_id":"","url":"https://api.github.com/users/kamadak","html_url":"https://github.com/kamadak","followers_url":"https://api.github.com/users/kamadak/followers","following_url":"https://api.github.com/users/kamadak/following{/other_user}","gists_url":"https://api.github.com/users/kamadak/gists{/gist_id}","starred_url":"https://api.github.com/users/kamadak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamadak/subscriptions","organizations_url":"https://api.github.com/users/kamadak/orgs","repos_url":"https://api.github.com/users/kamadak/repos","events_url":"https://api.github.com/users/kamadak/events{/privacy}","received_events_url":"https://api.github.com/users/kamadak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kamadak/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/kamadak/syncthing","forks_url":"https://api.github.com/repos/kamadak/syncthing/forks","keys_url":"https://api.github.com/repos/kamadak/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kamadak/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kamadak/syncthing/teams","hooks_url":"https://api.github.com/repos/kamadak/syncthing/hooks","issue_events_url":"https://api.github.com/repos/kamadak/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/kamadak/syncthing/events","assignees_url":"https://api.github.com/repos/kamadak/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/kamadak/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/kamadak/syncthing/tags","blobs_url":"https://api.github.com/repos/kamadak/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kamadak/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kamadak/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/kamadak/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kamadak/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/kamadak/syncthing/languages","stargazers_url":"https://api.github.com/repos/kamadak/syncthing/stargazers","contributors_url":"https://api.github.com/repos/kamadak/syncthing/contributors","subscribers_url":"https://api.github.com/repos/kamadak/syncthing/subscribers","subscription_url":"https://api.github.com/repos/kamadak/syncthing/subscription","commits_url":"https://api.github.com/repos/kamadak/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/kamadak/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/kamadak/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/kamadak/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/kamadak/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/kamadak/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kamadak/syncthing/merges","archive_url":"https://api.github.com/repos/kamadak/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kamadak/syncthing/downloads","issues_url":"https://api.github.com/repos/kamadak/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/kamadak/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/kamadak/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/kamadak/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kamadak/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/kamadak/syncthing/releases{/id}","created_at":"2015-03-15T13:24:45Z","updated_at":"2015-03-23T12:39:25Z","pushed_at":"2015-03-23T14:57:27Z","git_url":"git://github.com/kamadak/syncthing.git","ssh_url":"git@github.com:kamadak/syncthing.git","clone_url":"https://github.com/kamadak/syncthing.git","svn_url":"https://github.com/kamadak/syncthing","homepage":"http://discourse.syncthing.net/","size":32294,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"syncthing:master","ref":"master","sha":"3706f9bcb8f4684980e838c716a429b0c162da45","user":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":14712850,"name":"syncthing","full_name":"syncthing/syncthing","owner":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syncthing/syncthing","description":"Open Source Continuous File Synchronization","fork":false,"url":"https://api.github.com/repos/syncthing/syncthing","forks_url":"https://api.github.com/repos/syncthing/syncthing/forks","keys_url":"https://api.github.com/repos/syncthing/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/syncthing/teams","hooks_url":"https://api.github.com/repos/syncthing/syncthing/hooks","issue_events_url":"https://api.github.com/repos/syncthing/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/syncthing/events","assignees_url":"https://api.github.com/repos/syncthing/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/syncthing/tags","blobs_url":"https://api.github.com/repos/syncthing/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/syncthing/languages","stargazers_url":"https://api.github.com/repos/syncthing/syncthing/stargazers","contributors_url":"https://api.github.com/repos/syncthing/syncthing/contributors","subscribers_url":"https://api.github.com/repos/syncthing/syncthing/subscribers","subscription_url":"https://api.github.com/repos/syncthing/syncthing/subscription","commits_url":"https://api.github.com/repos/syncthing/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/syncthing/merges","archive_url":"https://api.github.com/repos/syncthing/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/syncthing/downloads","issues_url":"https://api.github.com/repos/syncthing/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/syncthing/releases{/id}","created_at":"2013-11-26T09:48:21Z","updated_at":"2015-03-24T18:45:05Z","pushed_at":"2015-03-24T20:09:48Z","git_url":"git://github.com/syncthing/syncthing.git","ssh_url":"git@github.com:syncthing/syncthing.git","clone_url":"https://github.com/syncthing/syncthing.git","svn_url":"https://github.com/syncthing/syncthing","homepage":"http://discourse.syncthing.net/","size":55605,"stargazers_count":7430,"watchers_count":7430,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":494,"mirror_url":null,"open_issues_count":128,"forks":494,"open_issues":128,"watchers":7430,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/1513"},"html":{"href":"https://github.com/syncthing/syncthing/pull/1513"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/1513"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/1513/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/1513/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/1513/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/ac7097b4d047c6c413b71844dffa2b45879d02ec"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"calmh","id":125426,"avatar_url":"https://avatars.githubusercontent.com/u/125426?v=3","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}