{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/8987","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/8987/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/8987/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/8987/events","html_url":"https://github.com/nodejs/node/issues/8987","id":181855658,"number":8987,"title":"ENOENT thrown when trying to create a file with an invalid filename","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/fs","name":"fs","color":"0052cc"},{"url":"https://api.github.com/repos/nodejs/node/labels/libuv","name":"libuv","color":"bfd4f2"},{"url":"https://api.github.com/repos/nodejs/node/labels/windows","name":"windows","color":"9944dd"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-09T00:03:49Z","updated_at":"2016-10-13T21:06:11Z","closed_at":null,"body":"Node v6.7.0, Windows 10\r\n\r\nTo reproduce the issue:\r\n```\r\nfs.writeFileSync('C:\\\\temp\\\\foo:bar:baz', 'fail')\r\n```\r\n\r\nExpected output: Some error message about the filename being invalid because it contains colons\r\n\r\nActual output:\r\n```\r\nError: ENOENT: no such file or directory, open 'C:\\temp\\foo:bar:baz'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:640:18)\r\n    at Object.fs.writeFileSync (fs.js:1333:33)\r\n    at repl:1:4\r\n    at sigintHandlersWrap (vm.js:22:35)\r\n    at sigintHandlersWrap (vm.js:96:12)\r\n    at ContextifyScript.Script.runInThisContext (vm.js:21:12)\r\n    at REPLServer.defaultEval (repl.js:313:29)\r\n    at bound (domain.js:280:14)\r\n    at REPLServer.runBound [as eval] (domain.js:293:12)\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/253638804","html_url":"https://github.com/nodejs/node/issues/8987#issuecomment-253638804","issue_url":"https://api.github.com/repos/nodejs/node/issues/8987","id":253638804,"user":{"login":"seishun","id":988441,"avatar_url":"https://avatars.githubusercontent.com/u/988441?v=3","gravatar_id":"","url":"https://api.github.com/users/seishun","html_url":"https://github.com/seishun","followers_url":"https://api.github.com/users/seishun/followers","following_url":"https://api.github.com/users/seishun/following{/other_user}","gists_url":"https://api.github.com/users/seishun/gists{/gist_id}","starred_url":"https://api.github.com/users/seishun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seishun/subscriptions","organizations_url":"https://api.github.com/users/seishun/orgs","repos_url":"https://api.github.com/users/seishun/repos","events_url":"https://api.github.com/users/seishun/events{/privacy}","received_events_url":"https://api.github.com/users/seishun/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T21:06:11Z","updated_at":"2016-10-13T21:06:11Z","body":"@piscisaureus \r\n\r\nGood idea. I assume you meant fopen, not open. `fopen(\"foo??\", \"w\")` sets `errno` to `EINVAL` in both CRT and MSYS2.\r\n\r\n@silverwind \r\n\r\nIn both of your examples, `/` is interpreted as a path separator. I don't think it's even possible to make Linux interpret it as part of the file name."}}
{"actor":{"display_login":"seishun"}}