[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Mon Feb 1 16:57:13 MST 2010


The branch, master has been updated
       via  b300981... Fix bug #7080 - Quota only shown when logged as root.
      from  431d75f... s4:NBT-WINS: test large scopes

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


- Log -----------------------------------------------------------------
commit b3009819c55043aca81d5b53c805696dd4c88aac
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Feb 1 15:55:55 2010 -0800

    Fix bug #7080 - Quota only shown when logged as root.
    
    conn->server_info->utok.uid == 0
    
    isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does,
    the correct check is :
    
    geteuid() == sec_initial_uid()
    
    Jeremy.

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

Summary of changes:
 source3/smbd/fake_file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/fake_file.c b/source3/smbd/fake_file.c
index 6898793..9917481 100644
--- a/source3/smbd/fake_file.c
+++ b/source3/smbd/fake_file.c
@@ -126,7 +126,7 @@ NTSTATUS open_fake_file(struct smb_request *req, connection_struct *conn,
 	NTSTATUS status;
 
 	/* access check */
-	if (conn->server_info->utok.uid != 0) {
+	if (geteuid() == sec_initial_uid()) {
 		DEBUG(3, ("open_fake_file_shared: access_denied to "
 			  "service[%s] file[%s] user[%s]\n",
 			  lp_servicename(SNUM(conn)),


-- 
Samba Shared Repository


More information about the samba-cvs mailing list