Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/jruby/RubyFile.java
Original file line number Diff line number Diff line change
@@ -1224,7 +1224,8 @@ public IRubyObject fileOpenGeneric(ThreadContext context, IRubyObject filename,
MakeOpenFile();

openFile.setMode(fmode_p[0]);
openFile.setPath(RubyFile.get_path(context, filename).asJavaString());
openFile.setPath(adjustRootPathOnWindows(context.runtime,
RubyFile.get_path(context, filename).asJavaString(), context.runtime.getCurrentDirectory()));

sysopenInternal19(openFile.getPath(), oflags, perm);

0 comments on commit cb4e52e

Please sign in to comment.