aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2012-09-21 19:50:16 +0200
committerMemphiz <memphis@machzwo.de>2012-09-21 19:50:16 +0200
commitfe97d68f87d6985b2bf57d8e942b36b5e7373066 (patch)
tree61f76e13682770f5093474c33d4ba86c6e777c2c
parentdb3d6d0895f8f8f45dd85681b74ce8d7997c01e0 (diff)
[nfs] - fix issue with nfs when multiple exports are subwords of each other (for example - share and share1). In that case - depending in which order they are exported from the server - we could pick the wrong share. Fix it by sorting and reversing the exportlis
-rw-r--r--xbmc/filesystem/NFSFile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/filesystem/NFSFile.cpp b/xbmc/filesystem/NFSFile.cpp
index c7bf02a6ba..9fc26b094a 100644
--- a/xbmc/filesystem/NFSFile.cpp
+++ b/xbmc/filesystem/NFSFile.cpp
@@ -97,6 +97,8 @@ std::list<CStdString> CNfsConnection::GetExportList(const CURL &url)
}
gNfsConnection.GetImpl()->mount_free_export_list(exportlist);
+ retList.sort();
+ retList.reverse();
}
return retList;