Skip to content
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

removing a non-existent path with FileUtils.rmdir '/non_existent_path' passes on MRI and raises EACCESS on JRuby 9.0.5.0 #3780

Open
doudou opened this issue Apr 5, 2016 · 0 comments

Comments

@doudou
Copy link

doudou commented Apr 5, 2016

Environment

jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 25.77-b03 on 1.8.0_77-b03 +jit [linux-amd64]

Linux squidock 4.2.0-34-generic #39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Expected Behavior

On MRI (2.1.6 and 2.2.2)

[1] pry(main)> FileUtils.rmdir '/does/not_exist'
=> ["/does/not_exist"]
[2] pry(main)> FileUtils.rmdir '/does'
=> ["/does"]

Actual Behavior

On JRuby 9.0.5.0

[1] pry(main)> FileUtils.rmdir '/does/not_exist'
=> ["/does/not_exist"]
[2] pry(main)> FileUtils.rmdir '/does'
Errno::EACCES: Permission denied - /does
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant