{"action":"created","issue":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/271","labels_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/271/comments","events_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/271/events","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/271","id":89559187,"number":271,"title":"tmux-git: can't create socket: Permission denied","user":{"login":"goreliu","id":169704,"avatar_url":"https://avatars.githubusercontent.com/u/169704?v=3","gravatar_id":"","url":"https://api.github.com/users/goreliu","html_url":"https://github.com/goreliu","followers_url":"https://api.github.com/users/goreliu/followers","following_url":"https://api.github.com/users/goreliu/following{/other_user}","gists_url":"https://api.github.com/users/goreliu/gists{/gist_id}","starred_url":"https://api.github.com/users/goreliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goreliu/subscriptions","organizations_url":"https://api.github.com/users/goreliu/orgs","repos_url":"https://api.github.com/users/goreliu/repos","events_url":"https://api.github.com/users/goreliu/events{/privacy}","received_events_url":"https://api.github.com/users/goreliu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-19T12:58:25Z","updated_at":"2015-07-04T12:31:42Z","closed_at":null,"body":"tmux-git 2.0.171.g7acc4ad-1:\r\n\r\n    $ tmux\r\n    can't create socket: Permission denied\r\n\r\ntmux-git 1.9.4851.f8481f9-1 is ok.\r\n"},"comment":{"url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/comments/118508462","html_url":"https://github.com/Alexpux/MSYS2-packages/issues/271#issuecomment-118508462","issue_url":"https://api.github.com/repos/Alexpux/MSYS2-packages/issues/271","id":118508462,"user":{"login":"moguriso","id":1086880,"avatar_url":"https://avatars.githubusercontent.com/u/1086880?v=3","gravatar_id":"","url":"https://api.github.com/users/moguriso","html_url":"https://github.com/moguriso","followers_url":"https://api.github.com/users/moguriso/followers","following_url":"https://api.github.com/users/moguriso/following{/other_user}","gists_url":"https://api.github.com/users/moguriso/gists{/gist_id}","starred_url":"https://api.github.com/users/moguriso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moguriso/subscriptions","organizations_url":"https://api.github.com/users/moguriso/orgs","repos_url":"https://api.github.com/users/moguriso/repos","events_url":"https://api.github.com/users/moguriso/events{/privacy}","received_events_url":"https://api.github.com/users/moguriso/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T12:31:41Z","updated_at":"2015-07-04T12:31:41Z","body":"Probably tmp directory's create mask permission is 0755. But \"tmux.c\" expect to other's permission is not set. The patch is below. It seems that could modify our issue.\r\n\r\n```diff\r\ndiff --git a/tmux.c b/tmux.c\r\nindex 62f8a80..4633f76 100644\r\n--- a/tmux.c\r\n+++ b/tmux.c\r\n@@ -149,7 +149,7 @@ makesocketpath(const char *label)\r\n \t\terrno = ENOTDIR;\r\n \t\treturn (NULL);\r\n \t}\r\n-\tif (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {\r\n+\tif (sb.st_uid != uid || (sb.st_mode & S_IWOTH) != 0) {\r\n \t\terrno = EACCES;\r\n \t\treturn (NULL);\r\n \t}\r\n```\r\n\r\nHowever I don't know the modification which is correct. And I don't confirm other environment... (ex: linux, mac...)"}}