Index: net/ftp/ftp_directory_listing_parser_ls.cc |
diff --git a/net/ftp/ftp_directory_listing_parser_ls.cc b/net/ftp/ftp_directory_listing_parser_ls.cc |
index 90985839e31c82343cfb437e3478eb53db6fb23b..ec99700d0b5da72a6a4196a804a242bd9533c1c9 100644 |
--- a/net/ftp/ftp_directory_listing_parser_ls.cc |
+++ b/net/ftp/ftp_directory_listing_parser_ls.cc |
@@ -63,7 +63,7 @@ bool LooksLikePermissionDeniedError(const string16& text) { |
if (parts.size() != 3) |
return false; |
- return parts[2] == ASCIIToUTF16("Permission denied"); |
+ return parts[2].find(ASCIIToUTF16("Permission denied")) != string16::npos; |
} |
// Returns the column index of the end of the date listing and detected |