{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/10900","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/10900/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10900/comments","events_url":"https://api.github.com/repos/golang/go/issues/10900/events","html_url":"https://github.com/golang/go/issues/10900","id":77779793,"number":10900,"title":"os: MkdirAll fails when creating top-level UNC paths on Windows","user":{"login":"Zillode","id":14169,"avatar_url":"https://avatars3.githubusercontent.com/u/14169?v=4","gravatar_id":"","url":"https://api.github.com/users/Zillode","html_url":"https://github.com/Zillode","followers_url":"https://api.github.com/users/Zillode/followers","following_url":"https://api.github.com/users/Zillode/following{/other_user}","gists_url":"https://api.github.com/users/Zillode/gists{/gist_id}","starred_url":"https://api.github.com/users/Zillode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zillode/subscriptions","organizations_url":"https://api.github.com/users/Zillode/orgs","repos_url":"https://api.github.com/users/Zillode/repos","events_url":"https://api.github.com/users/Zillode/events{/privacy}","received_events_url":"https://api.github.com/users/Zillode/received_events","type":"User","site_admin":false},"labels":[{"id":199753992,"url":"https://api.github.com/repos/golang/go/labels/OS-Windows","name":"OS-Windows","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestone/6","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","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":1122,"closed_issues":951,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2018-02-19T17:40:56Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2015-05-18T19:42:02Z","updated_at":"2018-02-19T17:40:56Z","closed_at":"2018-02-19T17:40:56Z","author_association":"NONE","body":"Go 1.4, Windows\n\nWhen the top-level folder of a Windows UNC path does not exist, the os.MkdirAll function goes one step too deep in recursion. This is illustrated in the following scenario:\n\n1) Make sure C:\\Test does not exist\n2) Try to create a new folder with arbitrary depth `os.MkdirAll(\"\\\\\\\\?\\\\C:\\\\Test\", 0700)` using UNC (we use UNC to support long paths).\n3) This fails with `The filename, directory name, or volume label syntax is incorrect`. This is due to [a bug in the Go library](https://github.com/golang/go/blob/362a40e37da849696e1af6874d0d5f1275a1a386/src/os/path.go#L42). The callstack reveals that it tries to create the folder `\\\\?`, which should not happen.\n\n(Related to https://github.com/syncthing/syncthing/issues/1822)\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/366761617","html_url":"https://github.com/golang/go/issues/10900#issuecomment-366761617","issue_url":"https://api.github.com/repos/golang/go/issues/10900","id":366761617,"user":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars1.githubusercontent.com/u/2621?v=4","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T17:40:56Z","updated_at":"2018-02-19T17:40:56Z","author_association":"OWNER","body":"@DmitriyMV, thanks, closing. Fixed by https://github.com/golang/go/commit/7a1347a1a1f6e99627a8e9bf098351c13162e5d6"}}
{"actor":{"display_login":"bradfitz"}}