Title: path.relative method returns wrong path when UNC path is provided · Issue #8444 · nodejs/node · GitHub
Open Graph Title: path.relative method returns wrong path when UNC path is provided · Issue #8444 · nodejs/node
X Title: path.relative method returns wrong path when UNC path is provided · Issue #8444 · nodejs/node
Description: It seems that versions prior v6 are not affected. Version: v6 Platform: windows Subsystem: path Tests: Windows 10 with node 4.5.0: c:\>node -e "console.log(require('path').relative('.','\\\\VBOXSRV\\vagrant'))" returns: \\VBOXSRV\vagrant...
Open Graph Description: It seems that versions prior v6 are not affected. Version: v6 Platform: windows Subsystem: path Tests: Windows 10 with node 4.5.0: c:\>node -e "console.log(require('path').relative('.','\\\\VBOXSRV...
X Description: It seems that versions prior v6 are not affected. Version: v6 Platform: windows Subsystem: path Tests: Windows 10 with node 4.5.0: c:\>node -e "console.log(require('path').relative(...
Opengraph URL: https://github.com/nodejs/node/issues/8444
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"path.relative method returns wrong path when UNC path is provided","articleBody":"It seems that versions prior v6 are not affected.\n- **Version**: v6\n- **Platform**: windows\n- **Subsystem**: path\n\nTests:\n- Windows 10 with node 4.5.0:\n\n```\n c:\\>node -e \"console.log(require('path').relative('.','\\\\\\\\VBOXSRV\\\\vagrant'))\"\n```\n\n **returns**: `\\\\VBOXSRV\\vagrant\\`\n- Windows 10 with node 6.5.0:\n\n```\n c:\\>node -e \"console.log(require('path').relative('.','\\\\\\\\VBOXSRV\\\\vagrant'))\"\n```\n\n **returns**: `VBOXSRV\\vagrant\\`(the leading backslashes are missing)\n **expected**: `\\\\VBOXSRV\\vagrant\\`\n\nRelated issue: https://github.com/nodejs/nan/pull/601\n","author":{"url":"https://github.com/amatas","@type":"Person","name":"amatas"},"datePublished":"2016-09-08T13:49:07Z","url":"https://github.com/nodejs/node/issues/8444"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:913dbd77-282b-3b84-b5e5-58e11eefea02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1AE:9EF81:3F73D9:5268D9:6AED212B |
| html-safe-nonce | 9ca092aee96aa4f59d4c5e784a5889f0f9054e9c70e7b38d813890e06e8028f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUFFOjlFRjgxOjNGNzNEOTo1MjY4RDk6NkFFRDIxMkIiLCJ2aXNpdG9yX2lkIjoiNTAwMTM4OTYxNTgzMDg2ODI2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1cc06063ed9a89ff4cc8b2d333e6447055ca67b4f565624a5414345fc06e0fe6 |
| hovercard-subject-tag | issue:175758596 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/8444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7c161767230174f8387215e57223407a8052198451a3ba56cf02637dbde0813/nodejs/node/issues/8444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7c161767230174f8387215e57223407a8052198451a3ba56cf02637dbde0813/nodejs/node/issues/8444 |
| og:image:alt | It seems that versions prior v6 are not affected. Version: v6 Platform: windows Subsystem: path Tests: Windows 10 with node 4.5.0: c:\>node -e "console.log(require('path').relative('.','\\\\VBOXSRV... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amatas |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width