{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3086","labels_url":"https://api.github.com/repos/chef/chef/issues/3086/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3086/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3086/events","html_url":"https://github.com/chef/chef/pull/3086","id":62142927,"number":3086,"title":"Fix faulty umask logic used in spec tests.","user":{"login":"ksubrama","id":9382254,"avatar_url":"https://avatars.githubusercontent.com/u/9382254?v=3","gravatar_id":"","url":"https://api.github.com/users/ksubrama","html_url":"https://github.com/ksubrama","followers_url":"https://api.github.com/users/ksubrama/followers","following_url":"https://api.github.com/users/ksubrama/following{/other_user}","gists_url":"https://api.github.com/users/ksubrama/gists{/gist_id}","starred_url":"https://api.github.com/users/ksubrama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksubrama/subscriptions","organizations_url":"https://api.github.com/users/ksubrama/orgs","repos_url":"https://api.github.com/users/ksubrama/repos","events_url":"https://api.github.com/users/ksubrama/events{/privacy}","received_events_url":"https://api.github.com/users/ksubrama/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef/chef/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-16T16:52:02Z","updated_at":"2015-03-16T18:26:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3086","html_url":"https://github.com/chef/chef/pull/3086","diff_url":"https://github.com/chef/chef/pull/3086.diff","patch_url":"https://github.com/chef/chef/pull/3086.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/81854774","html_url":"https://github.com/chef/chef/pull/3086#issuecomment-81854774","issue_url":"https://api.github.com/repos/chef/chef/issues/3086","id":81854774,"user":{"login":"ksubrama","id":9382254,"avatar_url":"https://avatars.githubusercontent.com/u/9382254?v=3","gravatar_id":"","url":"https://api.github.com/users/ksubrama","html_url":"https://github.com/ksubrama","followers_url":"https://api.github.com/users/ksubrama/followers","following_url":"https://api.github.com/users/ksubrama/following{/other_user}","gists_url":"https://api.github.com/users/ksubrama/gists{/gist_id}","starred_url":"https://api.github.com/users/ksubrama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksubrama/subscriptions","organizations_url":"https://api.github.com/users/ksubrama/orgs","repos_url":"https://api.github.com/users/ksubrama/repos","events_url":"https://api.github.com/users/ksubrama/events{/privacy}","received_events_url":"https://api.github.com/users/ksubrama/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T18:26:23Z","updated_at":"2015-03-16T18:26:23Z","body":"The subtraction being performed was incorrect.  umask gets \"masked out\" from the default permissions, not subtracted.  So if your umask was 077 and you attempted to create a file with 666, you'd get 600.  Instead the test expected 666-077 = 567, which is incorrect."}}