Commit bb041ea5 authored by Bartosz Sosnowski's avatar Bartosz Sosnowski
Browse files

repl: support hidden history file on Windows

On Windows when REPL history file has the hidden attribute node will
fail when trying to open it in 'w' mode. This changes the mode to
'r+'. The file is guaranteed to exists because of earlier open call
with 'a+'.

Fixes: https://github.com/nodejs/node/issues/5261
PR-URL: https://github.com/nodejs/node/pull/12207


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent f3f9dd73
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment