[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1113-g47c7063

Jeremy Allison jra at samba.org
Fri Aug 21 22:09:11 MDT 2009


The branch, master has been updated
       via  47c7063dc62dc06d0cdd50e1946c088f8bf1ee1d (commit)
      from  497234c1cbded9855b817114a6517c58daa25805 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 47c7063dc62dc06d0cdd50e1946c088f8bf1ee1d
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Aug 21 21:08:02 2009 -0700

    Try and fix the buildfarm by using getpwnam(root) instead
    of getpwuid(0) if DEVELOPER is defined. I'm hoping the
    build farm defines DEVELOPER...
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source3/auth/token_util.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 8e8e604..45b0fe2 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -91,10 +91,17 @@ NT_USER_TOKEN *get_root_nt_token( void )
 			cache_data, struct nt_user_token);
 	}
 
+#if defined(DEVELOPER)
+	if ( !(pw = sys_getpwnam("root")) ) {
+		DEBUG(0,("get_root_nt_token: sys_getpwnam(\"root\") failed!\n"));
+		return NULL;
+	}
+#else
 	if ( !(pw = sys_getpwuid(0)) ) {
 		DEBUG(0,("get_root_nt_token: sys_getpwuid(0) failed!\n"));
 		return NULL;
 	}
+#endif
 
 	/* get the user and primary group SIDs; although the
 	   BUILTIN\Administrators SId is really the one that matters here */


-- 
Samba Shared Repository


More information about the samba-cvs mailing list