jnr/jnr-posix — pull request #8 by bshashank (2012-04-12 23:02:22+00:00)
Title: Chmod incorrectly says that it failed to modify the permission

util/Chmod.java uses reflection to set the requested permissions on a given file, but it does not report back that it was successful. It will return -1 even if the permissions were changed successfully.

The patch adds a return 0 to the code path and also includes a test case to test it.