{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/3084","labels_url":"https://api.github.com/repos/minetest/minetest/issues/3084/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/3084/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/3084/events","html_url":"https://github.com/minetest/minetest/issues/3084","id":102166860,"number":3084,"title":"safeWriteToFile() probably broken on Linux","user":{"login":"celeron55","id":115571,"avatar_url":"https://avatars.githubusercontent.com/u/115571?v=3","gravatar_id":"","url":"https://api.github.com/users/celeron55","html_url":"https://github.com/celeron55","followers_url":"https://api.github.com/users/celeron55/followers","following_url":"https://api.github.com/users/celeron55/following{/other_user}","gists_url":"https://api.github.com/users/celeron55/gists{/gist_id}","starred_url":"https://api.github.com/users/celeron55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celeron55/subscriptions","organizations_url":"https://api.github.com/users/celeron55/orgs","repos_url":"https://api.github.com/users/celeron55/repos","events_url":"https://api.github.com/users/celeron55/events{/privacy}","received_events_url":"https://api.github.com/users/celeron55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T15:32:09Z","updated_at":"2015-08-20T16:39:06Z","closed_at":null,"body":"On #minetest-dev today it became obvious that on Linux the files being written by safeWriteToFile() are being seen ending up truncated in case of hard shutdown.\r\n\r\nCommit 5f1f1151d3a9c113902630adc16cc3f4845da7ba probably breaks the safe file writing on Linux. It enables the remove() call for the file being overwritten by the rename(), which was only intended to be done on Windows and is not needed on Linux.\r\n\r\nDoes someone have any comments about this or should I just go ahead and add back the _WIN32 conditional for the remove()?"},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/133070686","html_url":"https://github.com/minetest/minetest/issues/3084#issuecomment-133070686","issue_url":"https://api.github.com/repos/minetest/minetest/issues/3084","id":133070686,"user":{"login":"est31","id":8872119,"avatar_url":"https://avatars.githubusercontent.com/u/8872119?v=3","gravatar_id":"","url":"https://api.github.com/users/est31","html_url":"https://github.com/est31","followers_url":"https://api.github.com/users/est31/followers","following_url":"https://api.github.com/users/est31/following{/other_user}","gists_url":"https://api.github.com/users/est31/gists{/gist_id}","starred_url":"https://api.github.com/users/est31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/est31/subscriptions","organizations_url":"https://api.github.com/users/est31/orgs","repos_url":"https://api.github.com/users/est31/repos","events_url":"https://api.github.com/users/est31/events{/privacy}","received_events_url":"https://api.github.com/users/est31/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:39:06Z","updated_at":"2015-08-20T16:39:06Z","body":"Related to #2663"}}