-
-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File.stat.writable? returning false in JRuby, true in MRI #5641
Comments
|
See #5521 - until jnr/jnr-posix#126 is fixed, you'll want to run JRuby under an 11.2 chroot or jail so it sees the old stat structure. |
@Freaky Sorry that jnr/jnr-posix#126 got left behind. Let's get it merged and fix this! |
jnr-posix was updated so this is fixed. |
Hmm, just ran a build off latest jruby-master, and I'm not seeing this issue resolved despite it apparently using jnr-posix 3.0.50 which should have my fix. I'd be expecting it to call out to |
Disregard that, I was holding it wrong. Ahem. |
Environment
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae OpenJDK 64-Bit Server VM 25.192-b26 on 1.8.0_192-b26 +jit [freebsd-x86_64]
FreeBSD x220 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
Expected Behavior
I expect JRuby and MRI Ruby to return the same value -
true
- whenFile.stat.writable?
is run on a writable directory (/tmp
).Actual Behavior
JRuby returns false, where MRI returns true:
This is causing many failures, including an inability to install Gems, because
Dir::tmpdir
is failing to find a writable tmpdir.The text was updated successfully, but these errors were encountered: