{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24556","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24556/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24556/comments","events_url":"https://api.github.com/repos/golang/go/issues/24556/events","html_url":"https://github.com/golang/go/issues/24556","id":308970620,"number":24556,"title":"os: MkdirAll returns error with 'NUL' on Windows","user":{"login":"djdv","id":13862850,"avatar_url":"https://avatars1.githubusercontent.com/u/13862850?v=4","gravatar_id":"","url":"https://api.github.com/users/djdv","html_url":"https://github.com/djdv","followers_url":"https://api.github.com/users/djdv/followers","following_url":"https://api.github.com/users/djdv/following{/other_user}","gists_url":"https://api.github.com/users/djdv/gists{/gist_id}","starred_url":"https://api.github.com/users/djdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djdv/subscriptions","organizations_url":"https://api.github.com/users/djdv/orgs","repos_url":"https://api.github.com/users/djdv/repos","events_url":"https://api.github.com/users/djdv/events{/privacy}","received_events_url":"https://api.github.com/users/djdv/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false},{"id":199753992,"url":"https://api.github.com/repos/golang/go/labels/OS-Windows","name":"OS-Windows","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/62","html_url":"https://github.com/golang/go/milestone/62","labels_url":"https://api.github.com/repos/golang/go/milestones/62/labels","id":2827591,"number":62,"title":"Go1.11","description":"","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":903,"closed_issues":362,"state":"open","created_at":"2017-10-10T13:39:17Z","updated_at":"2018-04-26T01:10:06Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"comments":12,"created_at":"2018-03-27T13:32:55Z","updated_at":"2018-04-26T02:38:57Z","closed_at":null,"author_association":"NONE","body":"### What version of Go are you using (`go version`)?\r\ngo1.10 windows/amd64,\r\ngo version devel +b63b0f2b75 Tue Mar 27 08:16:50 2018 +0000 windows/amd64\r\n\r\n### Does this issue reproduce with the latest release?\r\nYes\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\nGOOS=windows GOARCH=amd64\r\n\r\n### What did you do?\r\nTried to use os.MkdirAll on \"NUL\": `os.MkdirAll(\"NUL\", 0777)`\r\n\r\n### What did you expect to see?\r\nno error returned, as is the case with: `os.Mkdir(\"NUL\", 0777)`.\r\n\r\n### What did you see instead?\r\nAn `os.PathError`: `The system cannot find the path specified.`\r\n\r\n### Additional\r\nSimilar to https://github.com/golang/go/issues/24482\r\n\r\nhttps://golang.org/src/os/path.go?s=705:716#L24\r\nIs the problem area, since `NUL` is not considered a directory, MkDirAll returns a PathError.\r\nIn the Windows command interpreter `md NUL` and `md intermediate\\paths\\NUL` create no paths and return no errors.\r\nHowever `md NUL\\path\\beyond` will return an error.\r\n\r\nAttn: @alexbrainman \r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/384494638","html_url":"https://github.com/golang/go/issues/24556#issuecomment-384494638","issue_url":"https://api.github.com/repos/golang/go/issues/24556","id":384494638,"user":{"login":"as","id":8127015,"avatar_url":"https://avatars2.githubusercontent.com/u/8127015?v=4","gravatar_id":"","url":"https://api.github.com/users/as","html_url":"https://github.com/as","followers_url":"https://api.github.com/users/as/followers","following_url":"https://api.github.com/users/as/following{/other_user}","gists_url":"https://api.github.com/users/as/gists{/gist_id}","starred_url":"https://api.github.com/users/as/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/as/subscriptions","organizations_url":"https://api.github.com/users/as/orgs","repos_url":"https://api.github.com/users/as/repos","events_url":"https://api.github.com/users/as/events{/privacy}","received_events_url":"https://api.github.com/users/as/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T02:38:57Z","updated_at":"2018-04-26T02:38:57Z","author_association":"CONTRIBUTOR","body":"> Even in events where directories are made, file creation can't always be assured.\r\n\r\nUnder what practical conditions would you expect `touch` to fail\r\n\r\n```\r\nmkdir foo && touch foo/bar\r\n```\r\n"}}
{"actor":{"display_login":"as"}}