Skip to content

Fix parameters to utimes() fallback call (fixes #5261) #5263

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

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

danielford
Copy link

This code was rewritten in #5075 to call utimensat() which takes nanosecond precision, but then falls back to calling utimes() which takes microsecond precision. Passing in microsecond values greater than 1,000,000 caused utimes() to fail with Errno::EINVAL. See #5261 for more details.

This fixes the issue by converting to microseconds before calling utimes().

@kares kares added this to the JRuby 9.1.18.0 milestone Jul 27, 2018
@headius headius merged commit 8b1f0c2 into jruby:master Aug 16, 2018
@headius
Copy link
Member

headius commented Aug 16, 2018

Looks good, thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants