summaryrefslogtreecommitdiff
path: root/lib/fileutils.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:38:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-04 14:38:02 +0000
commit9b7ecc68a9e869143367556dba35f7368839ab32 (patch)
treed200ec41386e1499edba7a069e09989a880f87cf /lib/fileutils.rb
parent35fadee53d443e362cde1d429dd6d8c66a535132 (diff)
downloadruby-9b7ecc68a9e869143367556dba35f7368839ab32.tar.gz
* file.c (rb_stat_s_utime): fixed a commit miss for the platforms
where utimes() does not exist. * lib/fileutils.rb (touch): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r--lib/fileutils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 73ee072024..35bfd4b76f 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -1012,7 +1012,7 @@ module FileUtils
fu_check_options options, OPT_TABLE['touch']
list = fu_list(list)
created = nocreate = options[:nocreate]
- t = options[:mtime] || Time.now
+ t = options[:mtime]
if options[:verbose]
fu_output_message "touch #{nocreate ? ' -c' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}"
end