{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/sortmerna/issues/48","labels_url":"https://api.github.com/repos/biocore/sortmerna/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/biocore/sortmerna/issues/48/comments","events_url":"https://api.github.com/repos/biocore/sortmerna/issues/48/events","html_url":"https://github.com/biocore/sortmerna/issues/48","id":47960899,"number":48,"title":"tmp file fixed to test.txt causes writing permission problem on a multi-user server","user":{"login":"dawnmy","id":497428,"avatar_url":"https://avatars.githubusercontent.com/u/497428?v=3","gravatar_id":"","url":"https://api.github.com/users/dawnmy","html_url":"https://github.com/dawnmy","followers_url":"https://api.github.com/users/dawnmy/followers","following_url":"https://api.github.com/users/dawnmy/following{/other_user}","gists_url":"https://api.github.com/users/dawnmy/gists{/gist_id}","starred_url":"https://api.github.com/users/dawnmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawnmy/subscriptions","organizations_url":"https://api.github.com/users/dawnmy/orgs","repos_url":"https://api.github.com/users/dawnmy/repos","events_url":"https://api.github.com/users/dawnmy/events{/privacy}","received_events_url":"https://api.github.com/users/dawnmy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biocore/sortmerna/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-06T13:19:18Z","updated_at":"2015-01-12T16:11:40Z","closed_at":"2015-01-12T16:11:40Z","body":"### tmp file fixed to test.txt causes writing permission problem on a multi-user server.\r\n```bash\r\nWARNING: no write permissions in directory /vol/tmp: Permission denied will try /tmp/.\r\nERROR: could not open /vol/tmp//tmp/sortmerna_keys_43918.txt file for writing\r\n```\r\nI think this problem involves the following source code in **indexdb.cpp**\r\n```cpp\r\nstrcat(try_str,\"test.txt\");\r\nFILE *tmp = fopen(try_str, \"w+\");\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/biocore/sortmerna/issues/comments/69594319","html_url":"https://github.com/biocore/sortmerna/issues/48#issuecomment-69594319","issue_url":"https://api.github.com/repos/biocore/sortmerna/issues/48","id":69594319,"user":{"login":"ekopylova","id":6933444,"avatar_url":"https://avatars.githubusercontent.com/u/6933444?v=3","gravatar_id":"","url":"https://api.github.com/users/ekopylova","html_url":"https://github.com/ekopylova","followers_url":"https://api.github.com/users/ekopylova/followers","following_url":"https://api.github.com/users/ekopylova/following{/other_user}","gists_url":"https://api.github.com/users/ekopylova/gists{/gist_id}","starred_url":"https://api.github.com/users/ekopylova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekopylova/subscriptions","organizations_url":"https://api.github.com/users/ekopylova/orgs","repos_url":"https://api.github.com/users/ekopylova/repos","events_url":"https://api.github.com/users/ekopylova/events{/privacy}","received_events_url":"https://api.github.com/users/ekopylova/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T16:11:40Z","updated_at":"2015-01-12T16:11:40Z","body":"Resolved in PR #61.\r\n\r\nNow the temporary 'test.txt' file is 'test_PID.txt' and should not cause issues on a multi-user server. Also, the temporary file is deleted if successfully written to the temporary directory."}}