FileUtils.touch should raise an IOException if I may not modify the file ------------------------------------------------------------------------
Key: IO-100 URL: http://issues.apache.org/jira/browse/IO-100 Project: Commons IO Issue Type: Bug Affects Versions: 1.2 Environment: Linux vmware-ap-mifr 2.6.4-52-default #1 Tue Jul 25 11:13:58 CEST 2006 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] coms_core-trunk]$ java -version java version "1.5.0_08" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03) Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing) Reporter: Mirko Friedenhagen The documentation states, that FileUtils.touch implements the UNIX-touch command. However I may successfully FileUtils.touch files like /etc/passwd, which is not allowed on the shell as normal user. Looking at the implementation, you should propably raise an IOException if the returnvalue of `file.setLastModified(System.currentTimeMillis());` is `false`. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]