summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/auth/token_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 28d6601b5f..8e8e604702 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -91,8 +91,8 @@ NT_USER_TOKEN *get_root_nt_token( void )
cache_data, struct nt_user_token);
}
- if ( !(pw = sys_getpwnam( "root" )) ) {
- DEBUG(0,("get_root_nt_token: getpwnam(\"root\") failed!\n"));
+ if ( !(pw = sys_getpwuid(0)) ) {
+ DEBUG(0,("get_root_nt_token: sys_getpwuid(0) failed!\n"));
return NULL;
}