[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1095-g8c347ed
Jeremy Allison
jra at samba.org
Wed Aug 19 17:56:47 MDT 2009
The branch, master has been updated
via 8c347ed1775acc124ff7887e2f14776529e40298 (commit)
from 33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 8c347ed1775acc124ff7887e2f14776529e40298
Author: Jeremy Allison <jra at samba.org>
Date: Wed Aug 19 16:55:26 2009 -0700
Fix bug #6647 - get_root_nt_token: getpwnam("root") failed!
Not all systems may have a "root" user, but all must have a passwd
entry for a uid of zero.
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source3/auth/token_util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 28d6601..8e8e604 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;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list