summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-14 10:27:28 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-14 10:27:28 +0000
commit5425099a9f536d52fa61bb78d97e79c48368390a (patch)
tree5b19637b0ecba6681c0bbeeea048867ad5d8dd91 /lib
parentcb1ff236f5a6a29e86f3b50aac05f6459a872b77 (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/net/ftp.rb2
1 files changed, 1 insertions, 1 deletions
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