git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d2779
)
Fix bug #6647 - get_root_nt_token: getpwnam("root") failed!
author
Jeremy Allison
<jra@samba.org>
Wed, 19 Aug 2009 23:55:26 +0000
(16:55 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 19 Aug 2009 23:55:26 +0000
(16:55 -0700)
Not all systems may have a "root" user, but all must have a passwd
entry for a uid of zero.
Jeremy.
source3/auth/token_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/token_util.c
b/source3/auth/token_util.c
index 28d6601b5f3eaed8a05063bd009266439c9d7e73..8e8e604702adadf5804045cde4b5ffcabcf47314 100644
(file)
--- 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_getpw
nam( "root"
)) ) {
- DEBUG(0,("get_root_nt_token:
getpwnam(\"root\"
) failed!\n"));
+ if ( !(pw = sys_getpw
uid(0
)) ) {
+ DEBUG(0,("get_root_nt_token:
sys_getpwuid(0
) failed!\n"));
return NULL;
}