From 5425099a9f536d52fa61bb78d97e79c48368390a Mon Sep 17 00:00:00 2001 From: shugo Date: Mon, 14 Sep 2015 10:27:28 +0000 Subject: * lib/net/ftp.rb (parse_mlsx_entry): parse pathnames including space correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 494cd478b1..fd11acb8b5 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -914,7 +914,7 @@ module Net FACT_PARSERS["unix.atime"] = TIME_PARSER def parse_mlsx_entry(entry) - facts, pathname = entry.split(" ") + facts, pathname = entry.chomp.split(/ /, 2) unless pathname raise FTPProtoError, entry end -- cgit v1.2.3