[smb] default to guest user instead of getenv("USER")
authorJoakim Plate <elupus@xbmc.org>
Sat, 5 May 2012 13:48:35 +0000 (15:48 +0200)
committerJoakim Plate <elupus@xbmc.org>
Sat, 5 May 2012 13:49:33 +0000 (15:49 +0200)
commit5682f21ef3f7a18a7e9fb6668775288f4c452980
tree16e4a8efcb97269d1283c33234554d8583d50109
parent6b4f2fa20ce008beb5ece55c857f30af831dd553
[smb] default to guest user instead of getenv("USER")

The system logged in user could possibly be right,
however it will try to connect to remote server
with a blank password which is very likely to fail.
Thus we default to access remote server as guest
if no user has been passed in url.
xbmc/filesystem/SmbFile.cpp