joyent/node — pull request #6855 by ForbesLindesay (2014-01-13 11:53:36+00:00)
Title: Fix path.relative on windows network shares

Array.prototype.slice takes `(startIndex, endIndex)` rather than `(startIndex, length)`. If your path starts with `//` or `\\` there will be two empty spaces at the start, which would lead to the last two parts of the path being chopped off.