{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/8444","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/8444/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/8444/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/8444/events","html_url":"https://github.com/nodejs/node/issues/8444","id":175758596,"number":8444,"title":"path.relative method returns wrong path when UNC path is provided","user":{"login":"amatas","id":158641,"avatar_url":"https://avatars.githubusercontent.com/u/158641?v=3","gravatar_id":"","url":"https://api.github.com/users/amatas","html_url":"https://github.com/amatas","followers_url":"https://api.github.com/users/amatas/followers","following_url":"https://api.github.com/users/amatas/following{/other_user}","gists_url":"https://api.github.com/users/amatas/gists{/gist_id}","starred_url":"https://api.github.com/users/amatas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amatas/subscriptions","organizations_url":"https://api.github.com/users/amatas/orgs","repos_url":"https://api.github.com/users/amatas/repos","events_url":"https://api.github.com/users/amatas/events{/privacy}","received_events_url":"https://api.github.com/users/amatas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/path","name":"path","color":"bfe5bf"},{"url":"https://api.github.com/repos/nodejs/node/labels/windows","name":"windows","color":"9944dd"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T13:49:07Z","updated_at":"2016-09-20T16:56:12Z","closed_at":"2016-09-20T16:56:12Z","body":"It seems that versions prior v6 are not affected.\r\n\r\n* **Version**: v6\r\n* **Platform**: windows\r\n* **Subsystem**: path\r\n\r\nTests:\r\n\r\n* Windows 10 with node 4.5.0:\r\n```\r\n  c:\\>node -e \"console.log(require('path').relative('.','\\\\\\\\VBOXSRV\\\\vagrant'))\"\r\n```\r\n  **returns**: `\\\\VBOXSRV\\vagrant\\`\r\n\r\n* Windows 10 with node 6.5.0:\r\n```\r\n  c:\\>node -e \"console.log(require('path').relative('.','\\\\\\\\VBOXSRV\\\\vagrant'))\"\r\n```\r\n  **returns**: `VBOXSRV\\vagrant\\`(the leading backslashes are missing)\r\n  **expected**: `\\\\VBOXSRV\\vagrant\\`\r\n\r\nRelated issue: https://github.com/nodejs/nan/pull/601"}}
{"actor":{"display_login":"jasnell"}}