aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-06-30 23:33:07 +0200
committerNaios <naios-dev@live.de>2015-06-30 23:33:07 +0200
commit4335611010de3e1f6c0903b4a46508b8e22db5d3 (patch)
tree04395350424e73e55881703da242f85eb583855b /src
parent836ec5a6e6109abe9491e204c1221e21ba9fcc81 (diff)
Core/Updater: Fix mysql cli password prompt when password is empty.
* ref: http://community.trinitycore.org/topic/11510-world-server-bug-enter-password-to-update/
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/Updater/DBUpdater.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/shared/Updater/DBUpdater.cpp b/src/server/shared/Updater/DBUpdater.cpp
index fd91e94b78f..7b39062222e 100644
--- a/src/server/shared/Updater/DBUpdater.cpp
+++ b/src/server/shared/Updater/DBUpdater.cpp
@@ -351,7 +351,9 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
// CLI Client connection info
args.push_back("-h" + host);
args.push_back("-u" + user);
- args.push_back("-p" + password);
+
+ if (!password.empty())
+ args.push_back("-p" + password);
// Check if we want to connect through ip or socket (Unix only)
#ifdef _WIN32