Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2
-
None
-
None
-
Linux vmware-ap-mifr 2.6.4-52-default #1 Tue Jul 25 11:13:58 CEST 2006 i686 i686 i386 GNU/Linux
[mifr@vmware-ap-mifr 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)Linux vmware-ap-mifr 2.6.4-52-default #1 Tue Jul 25 11:13:58 CEST 2006 i686 i686 i386 GNU/Linux [mifr@vmware-ap-mifr 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)
Description
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`.