mirror of https://github.com/lukechilds/node.git
Browse Source
os.tmpdir() began stripping trailing slashes in
b57cc51d8d
. This causes problems if
the temp directory is simply '/'. It also stripped trailing
slashes without first determining which slash type is used by
the current operating system. This commit only strips trailing
slashes if another character precedes the slash. On Windows, it
checks for ':', as not to strip slashes from something like 'C:\'.
It also only strips slashes that are appropriate for the user's
operating system.
Fixes: https://github.com/iojs/io.js/issues/1669
PR-URL: https://github.com/iojs/io.js/pull/1673
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Christian Tellnes <christian@tellnes.no>
v2.0.2
cjihrig
10 years ago
2 changed files with 14 additions and 1 deletions
Loading…
Reference in new issue