summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-07 12:32:31 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-07 12:32:31 +0000
commit9b91806f65e14365f29aea43a91705eb4c8c1b4c (patch)
tree7e937be6b209ef81caa91e4f00a89ec7fbec56af
parentd7fde61a70664403464e2cc1a924d6abfe907b1b (diff)
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/fileutils.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7319033b6..d2083a718 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri May 7 21:31:56 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n".
+ [ruby-core:02843]
+
Fri May 7 11:25:53 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* util.c (ruby_strtod): 0.0000000000000000001 == 0.0 should be false.
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 8b4ec9d80..99e4feeaa 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -717,7 +717,7 @@ module FileUtils
end
def fu_list(arg)
- Array(arg).map {|path| path.to_str }
+ [arg].flatten.map {|path| path.to_str }
end
def fu_each_src_dest(src, dest)