summaryrefslogtreecommitdiff
path: root/lib/common/UnixUser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/UnixUser.cpp')
-rw-r--r--lib/common/UnixUser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/UnixUser.cpp b/lib/common/UnixUser.cpp
index f81b474c..32acacfa 100644
--- a/lib/common/UnixUser.cpp
+++ b/lib/common/UnixUser.cpp
@@ -31,13 +31,13 @@
// Created: 21/1/04
//
// --------------------------------------------------------------------------
-UnixUser::UnixUser(const char *Username)
+UnixUser::UnixUser(const std::string& Username)
: mUID(0),
mGID(0),
mRevertOnDestruction(false)
{
// Get password info
- struct passwd *pwd = ::getpwnam(Username);
+ struct passwd *pwd = ::getpwnam(Username.c_str());
if(pwd == 0)
{
THROW_EXCEPTION(CommonException, CouldNotLookUpUsername)